Cleanup defer from SetFeatureGateDuringTest function call
This commit is contained in:
committed by
Marek Siarkowicz
parent
bf6507070c
commit
3ee8178768
@@ -1044,7 +1044,7 @@ func TestCalculateEmptyDirMemorySize(t *testing.T) {
|
||||
|
||||
for testCaseName, testCase := range testCases {
|
||||
t.Run(testCaseName, func(t *testing.T) {
|
||||
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SizeMemoryBackedVolumes, testCase.featureGateEnabled)()
|
||||
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SizeMemoryBackedVolumes, testCase.featureGateEnabled)
|
||||
spec := &volume.Spec{
|
||||
Volume: &v1.Volume{
|
||||
VolumeSource: v1.VolumeSource{
|
||||
|
||||
Reference in New Issue
Block a user