Skip to content

Commit

Permalink
Merge pull request #1269 from gnufied/fix-race-again
Browse files Browse the repository at this point in the history
Fix race in tests
  • Loading branch information
k8s-ci-robot authored Sep 6, 2024
2 parents b17cc68 + 47401b6 commit 7982c59
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 7982c59

Please sign in to comment.