Skip to content

Commit 0ac87e3

Browse files
committed
fixup! Use Patch instead of Update for finalizer operations
Signed-off-by: Todd Short <[email protected]>
1 parent e784043 commit 0ac87e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/operator-controller/controllers/clusterextensionrevision_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ func Test_ClusterExtensionRevisionReconciler_Reconcile_Deletion(t *testing.T) {
507507
// Kubernetes deletes the object immediately. The fake client simulates
508508
// this behavior, so we expect a NotFound error.
509509
require.Error(t, err)
510-
require.True(t, client.IgnoreNotFound(err) == nil, "expected NotFound error, got: %v", err)
510+
require.NoError(t, client.IgnoreNotFound(err), "expected NotFound error, got: %v", err)
511511
},
512512
},
513513
{

0 commit comments

Comments
 (0)