Merge pull request #3853 from dmcgowan/fix-content-test-cleanup-race
Fix cleanup error on content client test
This commit is contained in:
commit
3a31ce267d
@ -57,7 +57,7 @@ func newContentStore(ctx context.Context, root string) (context.Context, content
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for _, st := range statuses {
|
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)
|
return errors.Wrapf(err, "failed to abort %s", st.Ref)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user