fix lint errors

This commit is contained in:
LexLuthr 2022-07-11 17:24:53 +05:30
parent 89b3119220
commit 0e2118e12e

View File

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