Skip to content

Commit 3a0b93d

Browse files
committed
ssh: CL feedback: show that net.Dialer also implements ContextDialer
1 parent 584f08b commit 3a0b93d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ssh/tcpip_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ func TestClientImplementsDialContext(t *testing.T) {
2626
type ContextDialer interface {
2727
DialContext(context.Context, string, string) (net.Conn, error)
2828
}
29+
// Belt and suspenders assertion, since package net does not
30+
// declare a ContextDialer type.
31+
var _ ContextDialer = &net.Dialer{}
2932
var _ ContextDialer = &Client{}
3033
}
3134

0 commit comments

Comments
 (0)