Skip to content

Commit 8821a2e

Browse files
committed
ensure context is canceled
1 parent 7f6f09a commit 8821a2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/basic_tests.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ func randValue() []byte {
405405

406406
func subtestQuery(t *testing.T, ds dstore.Datastore, q dsq.Query, count int) {
407407
ctx, cancel := context.WithCancel(context.Background())
408+
defer cancel()
408409

409410
var input []dsq.Entry
410411
for i := 0; i < count; i++ {

0 commit comments

Comments
 (0)