Merge pull request #78563 from qingsenLi/k8s-190531

Delete the redundant define test
This commit is contained in:
Kubernetes Prow Robot 2019-09-26 01:25:10 -07:00 committed by GitHub
commit b72d550672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -1069,8 +1069,8 @@ func testExecAttach(t *testing.T, verb string) {
"stdout with redirect": {stdout: true, responseStatusCode: http.StatusFound, redirect: true},
}
for desc, test := range tests {
test := test
for desc := range tests {
test := tests[desc]
t.Run(desc, func(t *testing.T) {
ss, err := newTestStreamingServer(0)
require.NoError(t, err)
@ -1333,8 +1333,8 @@ func TestServePortForward(t *testing.T) {
podNamespace := "other"
podName := "foo"
for desc, test := range tests {
test := test
for desc := range tests {
test := tests[desc]
t.Run(desc, func(t *testing.T) {
ss, err := newTestStreamingServer(0)
require.NoError(t, err)

View File

@ -60,8 +60,8 @@ func TestServeWSPortForward(t *testing.T) {
podNamespace := "other"
podName := "foo"
for desc, test := range tests {
test := test
for desc := range tests {
test := tests[desc]
t.Run(desc, func(t *testing.T) {
ss, err := newTestStreamingServer(0)
require.NoError(t, err)