Fix the race between PVC finalizer and snapshot finalizer removal

This commit is contained in:
xing-yang
2020-08-17 02:23:28 +00:00
parent 4f3b02aaa0
commit c2ba707e71
2 changed files with 26 additions and 31 deletions

View File

@@ -1147,7 +1147,7 @@ func testAddPVCFinalizer(ctrl *csiSnapshotCommonController, reactor *snapshotRea
}
func testRemovePVCFinalizer(ctrl *csiSnapshotCommonController, reactor *snapshotReactor, test controllerTest) error {
return ctrl.checkandRemovePVCFinalizer(test.initialSnapshots[0])
return ctrl.checkandRemovePVCFinalizer(test.initialSnapshots[0], false)
}
func testAddSnapshotFinalizer(ctrl *csiSnapshotCommonController, reactor *snapshotReactor, test controllerTest) error {