]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: correctly log stderr in TestFakeTime
authorCherry Zhang <cherryyz@google.com>
Thu, 17 Sep 2020 20:22:14 +0000 (16:22 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 18 Sep 2020 01:02:39 +0000 (01:02 +0000)
Change-Id: Iaf122ce7a8b8fb431199399aeed67b128a34d20b
Reviewed-on: https://go-review.googlesource.com/c/go/+/255720
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/time_test.go

index bf295611441f7dda32d526f67d05acaa60a060fe..a8dab7db8eb6c4090b081a87ff76214a41550963 100644 (file)
@@ -38,7 +38,7 @@ func TestFakeTime(t *testing.T) {
        }
 
        t.Logf("raw stdout: %q", stdout.String())
-       t.Logf("raw stderr: %q", stdout.String())
+       t.Logf("raw stderr: %q", stderr.String())
 
        f1, err1 := parseFakeTime(stdout.Bytes())
        if err1 != nil {