Delete the redundant define test

This commit is contained in:
qingsenLi 2019-06-01 00:00:02 +08:00
parent f49fe2a750
commit 94e4f27725
2 changed files with 6 additions and 6 deletions

View File

@ -1220,8 +1220,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)
@ -1484,8 +1484,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)