]> Cypherpunks repositories - gostls13.git/commit
sync: deflake TestWaitGroupMisuse2
authorMichael Munday <mike.munday@ibm.com>
Sun, 13 May 2018 07:13:56 +0000 (08:13 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 14 May 2018 04:42:45 +0000 (04:42 +0000)
commitb7f3c178a337b41c78a38dc3223304d69ec592f7
tree0e7650479dd19a259b1e070c757f72e34a143501
parent91f07c57d891e3ac1450bd4295de462c23bffb69
sync: deflake TestWaitGroupMisuse2

We need to yield to the runtime every now and again to avoid
deadlock. This doesn't show up on most machines because the test
only runs when you have 5 or more CPUs.

Fixes #20072.

Change-Id: Ibf5ed370e919943395f3418487188df0b2be160b
Reviewed-on: https://go-review.googlesource.com/112978
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/sync/waitgroup_test.go