Merge pull request #5297 from filecoin-project/fix/badger-test-race
Fix race in blockstore test suite
This commit is contained in:
commit
858994a630
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user