Skip to content

Commit

Permalink
Merge pull request containerd#3853 from dmcgowan/fix-content-test-cle…
Browse files Browse the repository at this point in the history
…anup-race

Fix cleanup error on content client test
  • Loading branch information
fuweid committed Nov 27, 2019
2 parents 3e5402c + 8da4346 commit 3a31ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func newContentStore(ctx context.Context, root string) (context.Context, content
return err
}
for _, st := range statuses {
if err := cs.Abort(ctx, st.Ref); err != nil {
if err := cs.Abort(ctx, st.Ref); err != nil && !errdefs.IsNotFound(err) {
return errors.Wrapf(err, "failed to abort %s", st.Ref)
}
}
Expand Down

0 comments on commit 3a31ce2

Please sign in to comment.