Skip to content

Commit d051e97

Browse files
committed
ssh: remove redundant test
1 parent 58d8177 commit d051e97

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ssh/tcpip_test.go

-10
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,3 @@ func TestClientDialContextWithDeadline(t *testing.T) {
5151
t.Errorf("DialContext: got nil error, expected %v", context.DeadlineExceeded)
5252
}
5353
}
54-
55-
func TestClientDialContextWithTimeout(t *testing.T) {
56-
c := &Client{}
57-
ctx, cancel := context.WithTimeout(context.Background(), 0)
58-
defer cancel()
59-
_, err := c.DialContext(ctx, "tcp", "localhost:1000")
60-
if err != context.DeadlineExceeded {
61-
t.Errorf("DialContext: got nil error, expected %v", context.DeadlineExceeded)
62-
}
63-
}

0 commit comments

Comments
 (0)