Skip to content

Commit 9e6c198

Browse files
committed
chore: merge main
1 parent 771ba94 commit 9e6c198

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

v2/pkg/engine/resolve/resolve_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4975,7 +4975,6 @@ type messageFunc func(counter int) (message string, done bool)
49754975
var fakeStreamRequestId atomic.Int32
49764976

49774977
type _fakeStream struct {
4978-
uniqueRequestFn func(ctx *Context, input []byte, xxh *xxhash.Digest) (err error)
49794978
messageFunc messageFunc
49804979
onStart func(input []byte)
49814980
delay time.Duration
@@ -5711,9 +5710,6 @@ func TestResolver_ResolveGraphQLSubscription(t *testing.T) {
57115710
}
57125711

57135712
fakeStream := createFakeStream(messageFn, time.Millisecond, onStartFn, subscriptionOnStartFn)
5714-
fakeStream.uniqueRequestFn = func(ctx *Context, input []byte, xxh *xxhash.Digest) (err error) {
5715-
return nil
5716-
}
57175713

57185714
resolver, plan, recorder, id := setup(c, fakeStream)
57195715

@@ -5813,10 +5809,6 @@ func TestResolver_ResolveGraphQLSubscription(t *testing.T) {
58135809
}
58145810

58155811
fakeStream := createFakeStream(messageFn, 1*time.Millisecond, onStartFn, subscriptionOnStartFn)
5816-
fakeStream.uniqueRequestFn = func(ctx *Context, input []byte, xxh *xxhash.Digest) (err error) {
5817-
_, err = xxh.WriteString("unique")
5818-
return
5819-
}
58205812

58215813
resolver, plan, recorder, id := setup(c, fakeStream)
58225814

@@ -5994,14 +5986,6 @@ func TestResolver_ResolveGraphQLSubscription(t *testing.T) {
59945986
}, func(ctx StartupHookContext, input []byte) (err error) {
59955987
return nil
59965988
})
5997-
fakeStream.uniqueRequestFn = func(ctx *Context, input []byte, xxh *xxhash.Digest) (err error) {
5998-
_, err = xxh.WriteString("unique")
5999-
if err != nil {
6000-
return
6001-
}
6002-
_, err = xxh.Write(input)
6003-
return err
6004-
}
60055989

60065990
resolver1, plan1, recorder1, id1 := setup(c, fakeStream)
60075991
_, _, recorder2, id2 := setup(c, fakeStream)

0 commit comments

Comments
 (0)