From 6749b2ace84a2d2712d45cf0135bda451bb44a72 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Mon, 19 Oct 2015 21:09:22 -0500 Subject: [PATCH] Make sure to close fake server connection in tests --- pkg/connection/port_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/connection/port_test.go b/pkg/connection/port_test.go index 2462457..d97a73a 100644 --- a/pkg/connection/port_test.go +++ b/pkg/connection/port_test.go @@ -31,6 +31,7 @@ func Test_portAvailable(t *testing.T) { if err == nil { conn.Close() } + serv.Close() } }()