Skip to content

Commit 7982c59

Browse files
authored
Merge pull request #1269 from gnufied/fix-race-again
Fix race in tests
2 parents b17cc68 + 47401b6 commit 7982c59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/clone_controller_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ func TestCloneFinalizerRemoval(t *testing.T) {
144144

145145
// TestEnqueueClaimUpadate ensure that PVCs will be processed for finalizer removal only on deletionTimestamp being set on the resource
146146
func TestEnqueueClaimUpadate(t *testing.T) {
147+
utilruntime.ReallyCrash = false
148+
147149
testcases := map[string]struct {
148150
claim *v1.PersistentVolumeClaim
149151
queueLen int
@@ -179,7 +181,6 @@ func TestEnqueueClaimUpadate(t *testing.T) {
179181
}
180182

181183
func fakeCloningProtector(client *fakeclientset.Clientset, objects ...runtime.Object) *CloningProtectionController {
182-
utilruntime.ReallyCrash = false
183184
controllerCapabilities := rpc.ControllerCapabilitySet{
184185
csi.ControllerServiceCapability_RPC_CLONE_VOLUME: true,
185186
}

0 commit comments

Comments
 (0)