diff --git a/lib/blockstore/badger/blockstore_test_suite.go b/lib/blockstore/badger/blockstore_test_suite.go index b11fc4e231a..9332e62c5bf 100644 --- a/lib/blockstore/badger/blockstore_test_suite.go +++ b/lib/blockstore/badger/blockstore_test_suite.go @@ -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)