summaryrefslogtreecommitdiff
path: root/gemini/roundtrip_test.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-24 19:59:47 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-24 19:59:47 -0700
commit997514292a8492d2291643e91081f3e790eefbaf (patch)
treeed870f158c6a6adfd91e490a64276bb704b56619 /gemini/roundtrip_test.go
parent23d705b93a89cb0aee582eda819a76257f42dffc (diff)
testing and linting and linter fixes
Diffstat (limited to 'gemini/roundtrip_test.go')
-rw-r--r--gemini/roundtrip_test.go8
1 files changed, 6 insertions, 2 deletions
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())