diff --git a/client/client_test.go b/client/client_test.go index a800a024..4dc15202 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -99,3 +99,9 @@ func TestCanPerformStartTLS(t *testing.T) { }) } } + +func TestCanCreateTCPConnection(t *testing.T) { + if CanCreateTCPConnection("127.0.0.1") { + t.Error("should've failed, because there's no port in the address") + } +}