Fix race in blockstore test suite
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
ab529f4641
commit
cfcfd5d8fa
@ -183,6 +183,8 @@ func (s *Suite) TestAllKeysRespectsContext(t *testing.T) {
|
|||||||
require.True(t, ok)
|
require.True(t, ok)
|
||||||
|
|
||||||
cancel()
|
cancel()
|
||||||
|
// pull one value out to avoid race
|
||||||
|
_, _ = <-ch
|
||||||
|
|
||||||
v, ok = <-ch
|
v, ok = <-ch
|
||||||
require.Equal(t, cid.Undef, v)
|
require.Equal(t, cid.Undef, v)
|
||||||
|
Loading…
Reference in New Issue
Block a user