File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
staging/src/k8s.io/legacy-cloud-providers/azure Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -429,10 +429,13 @@ func TestGetValidCreationData(t *testing.T) {
429
429
}
430
430
431
431
func TestCheckDiskExists (t * testing.T ) {
432
+ ctrl := gomock .NewController (t )
433
+ defer ctrl .Finish ()
434
+
432
435
ctx , cancel := getContextWithCancel ()
433
436
defer cancel ()
434
437
435
- testCloud := GetTestCloud ()
438
+ testCloud := GetTestCloud (ctrl )
436
439
common := & controllerCommon {
437
440
location : testCloud .Location ,
438
441
storageEndpointSuffix : testCloud .Environment .StorageEndpointSuffix ,
@@ -480,10 +483,13 @@ func TestCheckDiskExists(t *testing.T) {
480
483
}
481
484
482
485
func TestFilterNonExistingDisks (t * testing.T ) {
486
+ ctrl := gomock .NewController (t )
487
+ defer ctrl .Finish ()
488
+
483
489
ctx , cancel := getContextWithCancel ()
484
490
defer cancel ()
485
491
486
- testCloud := GetTestCloud ()
492
+ testCloud := GetTestCloud (ctrl )
487
493
common := & controllerCommon {
488
494
location : testCloud .Location ,
489
495
storageEndpointSuffix : testCloud .Environment .StorageEndpointSuffix ,
You can’t perform that action at this time.
0 commit comments