]> Cypherpunks repositories - gostls13.git/commit
sync: deflake TestWaitGroupMisuse3
authorIan Lance Taylor <iant@golang.org>
Thu, 5 Dec 2019 22:49:25 +0000 (14:49 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 6 Dec 2019 05:12:15 +0000 (05:12 +0000)
commit0915a19a115ba6bd2a5a95178bfaa076041d270b
tree9fd7707517474670a71689ec59d69fc3316024a5
parent6ef7794b24f7c8890c673436d8509b83def2ce27
sync: deflake TestWaitGroupMisuse3

If one of the helper goroutine panics, the main goroutine call to Wait
may hang forever waiting for something to call Done. Put that call in
a goroutine like the others.

Fixes #35774

Change-Id: I8d2b58d8f473644a49a95338f70111d4e6ed4e12
Reviewed-on: https://go-review.googlesource.com/c/go/+/210218
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/sync/waitgroup_test.go