From: Michael Munday Date: Thu, 14 Apr 2016 18:07:59 +0000 (-0400) Subject: test: use correct value in error message in init1.go X-Git-Tag: go1.7beta1~678 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=24bd465bca145320bffd5b06e11da105226a1eae;p=gostls13.git test: use correct value in error message in init1.go Print numGC followed by numGC1, rather than printing numGC twice. Change-Id: I8e7144b6a11d4ae9be0d82d88b86fed04b906e2f Reviewed-on: https://go-review.googlesource.com/22087 Reviewed-by: Brad Fitzpatrick --- diff --git a/test/init1.go b/test/init1.go index 62dfb72bf9..a008e3e134 100644 --- a/test/init1.go +++ b/test/init1.go @@ -40,7 +40,7 @@ func init() { sys1, numGC1 := memstats.Sys, memstats.NumGC if sys1-sys >= N*MB || numGC1 == numGC { println("allocated 1000 chunks of", MB, "and used ", sys1-sys, "memory") - println("numGC went", numGC, "to", numGC) + println("numGC went", numGC, "to", numGC1) panic("init1") } }