Skip to content

Commit 9d1d78c

Browse files
committed
[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 <[email protected]> Reviewed-by: Chris Broadfoot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent d45b26b commit 9d1d78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/gc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func TestPeriodicGC(t *testing.T) {
169169
// slack if things are slow.
170170
var numGCs uint32
171171
const want = 2
172-
for i := 0; i < 20 && numGCs < want; i++ {
172+
for i := 0; i < 200 && numGCs < want; i++ {
173173
time.Sleep(5 * time.Millisecond)
174174

175175
// Test that periodic GC actually happened.

0 commit comments

Comments
 (0)