fix lint errors
This commit is contained in:
parent
89b3119220
commit
0e2118e12e
@ -78,12 +78,13 @@ func TestWrapperAcquireRecoveryDestroy(t *testing.T) {
|
|||||||
// Destroy the shard
|
// Destroy the shard
|
||||||
dr := make(chan dagstore.ShardResult, 1)
|
dr := make(chan dagstore.ShardResult, 1)
|
||||||
err = w.DestroyShard(ctx, pieceCid, dr)
|
err = w.DestroyShard(ctx, pieceCid, dr)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
dctx, cancel := context.WithTimeout(ctx, time.Second)
|
dctx, cancel := context.WithTimeout(ctx, time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
select {
|
select {
|
||||||
case <-dctx.Done():
|
case <-dctx.Done():
|
||||||
require.Fail(t, "failed to call register")
|
require.Fail(t, "failed to call destroy")
|
||||||
case k := <-mock.destroy:
|
case k := <-mock.destroy:
|
||||||
require.Equal(t, k.String(), pieceCid.String())
|
require.Equal(t, k.String(), pieceCid.String())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user