Skip to content

Commit

Permalink
test: print the reason when curl fails
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed May 19, 2024
1 parent 4e55a3f commit 2021a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func runHTTP2ProxyTests(t *testing.T, server *httptest.Server, proxyURL *url.URL
args := buildCurlArgs(c)
curl := exec.Command("curl", args...)
bs, err := curl.CombinedOutput()
require.NoErrorf(t, err, "failed to execute curl")
require.NoErrorf(t, err, "failed to execute curl: %v", bs)

if c.method == http.MethodHead {
return // no body
Expand Down

0 comments on commit 2021a71

Please sign in to comment.