From 25ace4b65180722e794cd6edccbfb78795e993cd Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Thu, 23 Nov 2023 13:36:29 -0500 Subject: [PATCH] Close test port --- http/preflight_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/preflight_test.go b/http/preflight_test.go index 075e2766..c292f19d 100644 --- a/http/preflight_test.go +++ b/http/preflight_test.go @@ -110,6 +110,7 @@ func Test_IsServingHTTP_OpenPortTLS(t *testing.T) { if err != nil { t.Fatalf("failed to create TLS listener: %s", err) } + defer ln.Close() addr := ln.Addr().String() if IsServingHTTP(addr) {