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 --- gemini/roundtrip_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gemini/roundtrip_test.go') diff --git a/gemini/roundtrip_test.go b/gemini/roundtrip_test.go index 4f48e47..ab7baa4 100644 --- a/gemini/roundtrip_test.go +++ b/gemini/roundtrip_test.go @@ -27,7 +27,9 @@ func TestRoundTrip(t *testing.T) { server, err := gemini.NewServer(context.Background(), nil, tlsConf, "tcp", "127.0.0.1:0", handler) require.Nil(t, err) - go server.Serve() + go func() { + _ = server.Serve() + }() defer server.Close() u, err := url.Parse(fmt.Sprintf("gemini://%s/test", server.Address())) @@ -70,7 +72,9 @@ func TestTitanRequest(t *testing.T) { server, err := gemini.NewServer(context.Background(), nil, tlsConf, "tcp", "127.0.0.1:0", handler) require.Nil(t, err) - go server.Serve() + go func() { + _ = server.Serve() + }() defer server.Close() conn, err := tls.Dial(server.Network(), server.Address(), testClientTLS()) -- cgit v1.2.3