storage: make tests independent of CSIInlineVolume default

Some tests assumed instead of ensuring that the CSIInlineVolume
feature is disabled.
This commit is contained in:
Patrick Ohly
2019-08-27 17:30:08 +02:00
parent 07e0cce409
commit 599a9faf8d
2 changed files with 2 additions and 1 deletions

View File

@@ -231,6 +231,7 @@ func TestPluginGetVolumeNameWithInline(t *testing.T) {
func TestPluginCanSupport(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CSIBlockVolume, true)()
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CSIInlineVolume, false)()
tests := []struct {
name string