Skip to content

Commit

Permalink
In blockstore tests run cancel in separate goroutine
Browse files Browse the repository at this point in the history
This should prevent race condition that caused #2762

License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Kubuxu committed Jun 9, 2016
1 parent 7d5ba11 commit 87cd2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/blockstore/blockstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestAllKeysRespectsContext(t *testing.T) {
default:
}

cancel() // let it go.
go cancel() // let it go.

select {
case <-done:
Expand Down

0 comments on commit 87cd2ea

Please sign in to comment.