diff --git a/examples/debug_curl_test.go b/examples/debug_curl_test.go index 9006caf0..f506ae17 100644 --- a/examples/debug_curl_test.go +++ b/examples/debug_curl_test.go @@ -103,7 +103,7 @@ func TestDebugModeCurl(t *testing.T) { } func captureStderr() (getOutput func() string, restore func()) { - old := os.Stdout + old := os.Stderr r, w, err := os.Pipe() if err != nil { panic(err)