]> Cypherpunks repositories - gostls13.git/commit
runtime/testdata/testprog: increase GCFairness2 timeout to 1s
authorQuentin Smith <quentin@golang.org>
Wed, 2 Nov 2016 20:18:22 +0000 (16:18 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 3 Nov 2016 15:48:57 +0000 (15:48 +0000)
commit21c114e930fc1b118c2b8b8716d7b1b3b38027e0
tree15f5fc3f4d557cab0b9c6e9cf3964c784da00779
parente83911d6fc05c0ccb11bd95cf60694f8aec1698a
runtime/testdata/testprog: increase GCFairness2 timeout to 1s

OpenBSD's scheduler causes preemption to take 20+ms, so 30ms is not
enough time for 3 goroutines to run. This change continues to sleep for
30ms, but if it finds that the 3 goroutines have not run, it sleeps for
an additional 1s before declaring failure.

Updates #17712

Change-Id: I3e886e40d05192b7cb71b4f242af195836ef62a8
Reviewed-on: https://go-review.googlesource.com/32634
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Quentin Smith <quentin@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/testdata/testprog/gc.go