File tree 2 files changed +6
-6
lines changed
pkg/controller/volume/persistentvolume
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -720,14 +720,9 @@ func TestSyncAlphaBlockVolume(t *testing.T) {
720
720
t .Errorf ("Failed to enable feature gate for BlockVolume: %v" , err )
721
721
return
722
722
}
723
+ defer utilfeature .DefaultFeatureGate .Set ("BlockVolume=false" )
723
724
724
725
runSyncTests (t , tests , []* storage.StorageClass {})
725
-
726
- err1 := utilfeature .DefaultFeatureGate .Set ("BlockVolume=false" )
727
- if err1 != nil {
728
- t .Errorf ("Failed to disable feature gate for BlockVolume: %v" , err )
729
- return
730
- }
731
726
}
732
727
733
728
// Test multiple calls to syncClaim/syncVolume and periodic sync of all
Original file line number Diff line number Diff line change @@ -839,6 +839,8 @@ func TestAlphaVolumeModeCheck(t *testing.T) {
839
839
}
840
840
}
841
841
842
+ // make sure feature gate is turned off
843
+ toggleBlockVolumeFeature (false , t )
842
844
}
843
845
844
846
func TestAlphaFilteringVolumeModes (t * testing.T ) {
@@ -933,6 +935,9 @@ func TestAlphaFilteringVolumeModes(t *testing.T) {
933
935
t .Errorf ("Unexpected failure for scenario: %s - %+v" , name , err )
934
936
}
935
937
}
938
+
939
+ // make sure feature gate is turned off
940
+ toggleBlockVolumeFeature (false , t )
936
941
}
937
942
938
943
func TestFindingPreboundVolumes (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments