From 2021a71971e1099aedaf1532ffc711a5e74aed74 Mon Sep 17 00:00:00 2001 From: Junrou Nishida Date: Sun, 19 May 2024 19:07:35 +0900 Subject: [PATCH] test: print the reason when curl fails --- http/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/server_test.go b/http/server_test.go index 8b3b1b6..d285e06 100644 --- a/http/server_test.go +++ b/http/server_test.go @@ -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