diff options
author | Russ Cox <rsc@golang.org> | 2017-10-04 12:28:20 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2017-10-04 18:04:50 +0000 |
commit | 9d1d78c34cc6cd5070d73cef2046e60c15c61951 (patch) | |
tree | b5d5a69efc13da93a293e1b70983db4ceac14411 | |
parent | d45b26b1b7e7ac1823156b0a027911413e993d75 (diff) | |
download | go-9d1d78c34cc6cd5070d73cef2046e60c15c61951.tar.gz go-9d1d78c34cc6cd5070d73cef2046e60c15c61951.zip |
[release-branch.go1.8] 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/68150
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
-rw-r--r-- | src/runtime/gc_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/gc_test.go b/src/runtime/gc_test.go index 4a32f15167..342010b1d5 100644 --- a/src/runtime/gc_test.go +++ b/src/runtime/gc_test.go @@ -169,7 +169,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. |