update test for feature gate

This commit is contained in:
Shiming Zhang 2021-07-07 09:49:19 +08:00
parent d8fe255f41
commit 513bd93f76

View File

@ -6044,6 +6044,8 @@ func TestValidateProbe(t *testing.T) {
} }
func Test_validateProbe(t *testing.T) { func Test_validateProbe(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ProbeTerminationGracePeriod, true)()
fldPath := field.NewPath("test") fldPath := field.NewPath("test")
type args struct { type args struct {
probe *core.Probe probe *core.Probe