aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-10-04 12:28:20 -0400
committerRuss Cox <rsc@golang.org>2017-10-04 16:47:06 +0000
commitd9e64910affe9298c1d5b60d7085a82dcf1c8454 (patch)
tree9a4f1e472c5569b0cce81f7821701747a2ad73f7
parentc8aec4095e089ff6ac50d18e97c3f46561f14f48 (diff)
downloadgo-d9e64910affe9298c1d5b60d7085a82dcf1c8454.tar.gz
go-d9e64910affe9298c1d5b60d7085a82dcf1c8454.zip
[release-branch.go1.9] runtime: deflake TestPeriodicGC
It was only waiting 0.1 seconds for the two GCs it wanted. Let it wait 1 second. Change-Id: Ib3cdc8127cbf95694a9f173643c02529a85063af Reviewed-on: https://go-review.googlesource.com/68118 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Chris Broadfoot <cbro@golang.org> Reviewed-by: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/runtime/gc_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/gc_test.go b/src/runtime/gc_test.go
index 03acc8aaa6..25dc869caa 100644
--- a/src/runtime/gc_test.go
+++ b/src/runtime/gc_test.go
@@ -170,7 +170,7 @@ func TestPeriodicGC(t *testing.T) {
// slack if things are slow.
var numGCs uint32
const want = 2
- for i := 0; i < 20 && numGCs < want; i++ {
+ for i := 0; i < 200 && numGCs < want; i++ {
time.Sleep(5 * time.Millisecond)
// Test that periodic GC actually happened.