Skip to content

Commit

Permalink
Fix race in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Sep 6, 2024
1 parent b17cc68 commit 47401b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/clone_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 47401b6

Please sign in to comment.