Merge pull request #5297 from filecoin-project/fix/badger-test-race

Fix race in blockstore test suite
This commit is contained in:
Łukasz Magiera 2021-01-06 20:26:05 +01:00 committed by GitHub
commit 858994a630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)