Skip to content

Commit

Permalink
ssh: remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Jun 22, 2023
1 parent 58d8177 commit d051e97
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ssh/tcpip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,3 @@ func TestClientDialContextWithDeadline(t *testing.T) {
t.Errorf("DialContext: got nil error, expected %v", context.DeadlineExceeded)
}
}

func TestClientDialContextWithTimeout(t *testing.T) {
c := &Client{}
ctx, cancel := context.WithTimeout(context.Background(), 0)
defer cancel()
_, err := c.DialContext(ctx, "tcp", "localhost:1000")
if err != context.DeadlineExceeded {
t.Errorf("DialContext: got nil error, expected %v", context.DeadlineExceeded)
}
}

0 comments on commit d051e97

Please sign in to comment.