Skip to content

Commit

Permalink
Merge pull request #5297 from filecoin-project/fix/badger-test-race
Browse files Browse the repository at this point in the history
Fix race in blockstore test suite
  • Loading branch information
magik6k authored Jan 6, 2021
2 parents 7287159 + cfcfd5d commit 858994a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/blockstore/badger/blockstore_test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ func (s *Suite) TestAllKeysRespectsContext(t *testing.T) {
require.True(t, ok)

cancel()
// pull one value out to avoid race
_, _ = <-ch

v, ok = <-ch
require.Equal(t, cid.Undef, v)
Expand Down

0 comments on commit 858994a

Please sign in to comment.