From 18abc2ba6be1a8535dea31019c29b00e7ecae86b Mon Sep 17 00:00:00 2001 From: ahuigo <1781999+ahuigo@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:06:20 +0800 Subject: [PATCH] fix(examples): wrongly stderr written as stdout --- examples/debug_curl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)