Skip to content

Commit

Permalink
adding context cancel back to pass CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
branden-blackline committed May 19, 2020
1 parent fd2a748 commit d54fb02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func RunSubscribes(t *testing.T, tests []*TestSubscription) {

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

c := graphql.Subscribe(graphql.Params{
Context: ctx,
Expand Down

0 comments on commit d54fb02

Please sign in to comment.