Merge pull request #101006 from pacoxu/flake/fix-exec-probe

frequently flake ut: exec test should not run in Parallel as feature gate is not locked yet
This commit is contained in:
Kubernetes Prow Robot 2021-04-13 19:44:43 -07:00 committed by GitHub
commit 87e0466e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,9 +143,9 @@ func TestExecInContainer(t *testing.T) {
var resize <-chan remotecommand.TerminalSize
for _, tc := range testcases {
// these tests cannot be run in parallel due to the fact that they are feature gate dependent
tc := tc
t.Run(tc.description, func(t *testing.T) {
t.Parallel()
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ExecProbeTimeout, tc.execProbeTimeout)()
mockClient := mockclient.NewMockInterface(ctrl)