Skip to content

Commit f0223ac

Browse files
committed
Cancel context
1 parent b4ec075 commit f0223ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/portforward_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ func TestPortForward(t *testing.T) {
190190
testDial(t, c2)
191191
testDial(t, c1)
192192

193+
cancel()
193194
err = <-errC
194195
require.ErrorIs(t, err, context.Canceled)
195196
})
@@ -240,6 +241,7 @@ func TestPortForward(t *testing.T) {
240241
testDial(t, c2)
241242
testDial(t, c1)
242243

244+
cancel()
243245
err = <-errC
244246
require.ErrorIs(t, err, context.Canceled)
245247
})
@@ -297,6 +299,7 @@ func TestPortForward(t *testing.T) {
297299
testDial(t, c2)
298300
testDial(t, c1)
299301

302+
cancel()
300303
err = <-errC
301304
require.ErrorIs(t, err, context.Canceled)
302305
})
@@ -367,6 +370,7 @@ func TestPortForward(t *testing.T) {
367370
testDial(t, conns[i])
368371
}
369372

373+
cancel()
370374
err := <-errC
371375
require.ErrorIs(t, err, context.Canceled)
372376
})

0 commit comments

Comments
 (0)