From d051e978ef5b2a646cf45134661a4db7c6ee416c Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Wed, 21 Jun 2023 09:36:54 -0700 Subject: [PATCH] ssh: remove redundant test --- ssh/tcpip_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ssh/tcpip_test.go b/ssh/tcpip_test.go index 9cc73e2f92..4d85114727 100644 --- a/ssh/tcpip_test.go +++ b/ssh/tcpip_test.go @@ -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) - } -}