Skip to content

Commit d54fb02

Browse files
adding context cancel back to pass CI tests
1 parent fd2a748 commit d54fb02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testutil/subscription.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func RunSubscribes(t *testing.T, tests []*TestSubscription) {
4242

4343
// RunSubscribe runs a single GraphQL subscription test case.
4444
func RunSubscribe(t *testing.T, test *TestSubscription) {
45-
ctx, _ := context.WithCancel(context.Background())
46-
// defer cancel() // TODO add defer cancel
45+
ctx, cancel := context.WithCancel(context.Background())
46+
defer cancel()
4747

4848
c := graphql.Subscribe(graphql.Params{
4949
Context: ctx,

0 commit comments

Comments
 (0)