From 47401b6c595a3a3f15e51084204fbe6ba84c3d0f Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 5 Sep 2024 21:07:14 -0400 Subject: [PATCH] Fix race in tests --- pkg/controller/clone_controller_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/clone_controller_test.go b/pkg/controller/clone_controller_test.go index 66ce4dc347..37ff70b5de 100644 --- a/pkg/controller/clone_controller_test.go +++ b/pkg/controller/clone_controller_test.go @@ -144,6 +144,8 @@ func TestCloneFinalizerRemoval(t *testing.T) { // TestEnqueueClaimUpadate ensure that PVCs will be processed for finalizer removal only on deletionTimestamp being set on the resource func TestEnqueueClaimUpadate(t *testing.T) { + utilruntime.ReallyCrash = false + testcases := map[string]struct { claim *v1.PersistentVolumeClaim queueLen int @@ -179,7 +181,6 @@ func TestEnqueueClaimUpadate(t *testing.T) { } func fakeCloningProtector(client *fakeclientset.Clientset, objects ...runtime.Object) *CloningProtectionController { - utilruntime.ReallyCrash = false controllerCapabilities := rpc.ControllerCapabilitySet{ csi.ControllerServiceCapability_RPC_CLONE_VOLUME: true, }