From 997514292a8492d2291643e91081f3e790eefbaf Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 24 Jan 2023 19:59:47 -0700 Subject: testing and linting and linter fixes --- contrib/tlsauth/auth_test.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'contrib/tlsauth/auth_test.go') diff --git a/contrib/tlsauth/auth_test.go b/contrib/tlsauth/auth_test.go index 41292b4..fc39359 100644 --- a/contrib/tlsauth/auth_test.go +++ b/contrib/tlsauth/auth_test.go @@ -38,7 +38,9 @@ func TestIdentify(t *testing.T) { leafCert, err := x509.ParseCertificate(clientCert.Certificate[0]) require.Nil(t, err) - go server.Serve() + go func() { + _ = server.Serve() + }() defer server.Close() requestPath(t, client, server, "/") @@ -75,7 +77,9 @@ func TestRequiredAuth(t *testing.T) { gus.FallthroughHandler(handler1, handler2), ) - go server.Serve() + go func() { + _ = server.Serve() + }() defer server.Close() requestPath(t, client, server, "/one") @@ -113,7 +117,9 @@ func TestOptionalAuth(t *testing.T) { handler, ) - go server.Serve() + go func() { + _ = server.Serve() + }() defer server.Close() requestPath(t, client, server, "/one") -- cgit v1.2.3