Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Jul 11, 2022
1 parent 89b3119 commit 0e2118e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion markets/dagstore/wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ func TestWrapperAcquireRecoveryDestroy(t *testing.T) {
// Destroy the shard
dr := make(chan dagstore.ShardResult, 1)
err = w.DestroyShard(ctx, pieceCid, dr)
require.NoError(t, err)

dctx, cancel := context.WithTimeout(ctx, time.Second)
defer cancel()
select {
case <-dctx.Done():
require.Fail(t, "failed to call register")
require.Fail(t, "failed to call destroy")
case k := <-mock.destroy:
require.Equal(t, k.String(), pieceCid.String())
}
Expand Down

0 comments on commit 0e2118e

Please sign in to comment.