Skip to content

Commit

Permalink
Don't forget to close test server
Browse files Browse the repository at this point in the history
  • Loading branch information
icza committed Oct 8, 2024
1 parent ecf36a6 commit 696ac2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netx/httpx/httpx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 696ac2b

Please sign in to comment.