Fix race in blockstore test suite

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2021-01-05 20:33:13 +01:00
parent ab529f4641
commit cfcfd5d8fa
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

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)