From b88ae5fcf6c545eae66dfcfc0f73b64171498491 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Fri, 16 Jul 2021 21:12:18 -0400 Subject: [PATCH] Improve test coverage --- client/client_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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") + } +}