diff --git a/test/e2e/storage/csi_mock_volume.go b/test/e2e/storage/csi_mock_volume.go index 73f14f6f3f3..36f673f6fd4 100644 --- a/test/e2e/storage/csi_mock_volume.go +++ b/test/e2e/storage/csi_mock_volume.go @@ -1301,8 +1301,7 @@ var _ = utils.SIGDescribe("CSI mock volume", func() { framework.ExpectNoError(err, "Failed to get claim: %v", err) } framework.Logf("PVC not found. Continuing to test VolumeSnapshotContent finalizer") - } - if claim != nil && claim.DeletionTimestamp == nil { + } else if claim.DeletionTimestamp == nil { framework.Failf("Expected deletion timestamp to be set on PVC: %v", claim) }