Skip to content

Commit

Permalink
fix fake datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnithin committed May 29, 2024
1 parent 0a35e45 commit 18012b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion v2/pkg/engine/plan/schemausageinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package plan
import (
"bytes"
"context"
"github.com/wundergraph/graphql-go-tools/v2/pkg/engine/datasource/httpclient"
"io"
"testing"

Expand Down Expand Up @@ -486,6 +487,6 @@ type FakeDataSource struct {
source *StatefulSource
}

func (f *FakeDataSource) Load(ctx context.Context, input []byte, w io.Writer) (err error) {
func (f *FakeDataSource) Load(ctx context.Context, input []byte, files []httpclient.File, w io.Writer) (err error) {
return
}
3 changes: 2 additions & 1 deletion v2/pkg/engine/resolve/resolve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"errors"
"fmt"
"github.com/wundergraph/graphql-go-tools/v2/pkg/engine/datasource/httpclient"
"io"
"net"
"net/http"
Expand All @@ -30,7 +31,7 @@ type _fakeDataSource struct {
artificialLatency time.Duration
}

func (f *_fakeDataSource) Load(ctx context.Context, input []byte, w io.Writer) (err error) {
func (f *_fakeDataSource) Load(ctx context.Context, input []byte, files []httpclient.File, w io.Writer) (err error) {
if f.artificialLatency != 0 {
time.Sleep(f.artificialLatency)
}
Expand Down

0 comments on commit 18012b4

Please sign in to comment.