diff --git a/netx/httpx/httpx_test.go b/netx/httpx/httpx_test.go index 357ddab..8e7d6fb 100644 --- a/netx/httpx/httpx_test.go +++ b/netx/httpx/httpx_test.go @@ -142,6 +142,7 @@ func TestGetURL(t *testing.T) { srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "testoutput") })) + defer srv.Close() cases := []struct { name string