Skip to content

Commit

Permalink
ssh: CL feedback: show that net.Dialer also implements ContextDialer
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Jun 21, 2023
1 parent 584f08b commit 3a0b93d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssh/tcpip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func TestClientImplementsDialContext(t *testing.T) {
type ContextDialer interface {
DialContext(context.Context, string, string) (net.Conn, error)
}
// Belt and suspenders assertion, since package net does not
// declare a ContextDialer type.
var _ ContextDialer = &net.Dialer{}
var _ ContextDialer = &Client{}
}

Expand Down

0 comments on commit 3a0b93d

Please sign in to comment.