Skip to content

Commit 534f051

Browse files
davidvanlaatumlilic
authored andcommitted
e2e don't error if already gone (#881)
Fixes #880
1 parent fd86f9d commit 534f051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/test/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (f *frameworkClient) Create(gCtx goctx.Context, obj runtime.Object, cleanup
5858
}
5959
cleanupOptions.TestContext.AddCleanupFn(func() error {
6060
err = f.Client.Delete(gCtx, objCopy)
61-
if err != nil {
61+
if err != nil && !apierrors.IsNotFound(err) {
6262
return err
6363
}
6464
if cleanupOptions.Timeout == 0 && cleanupOptions.RetryInterval != 0 {

0 commit comments

Comments
 (0)