diff options
| author | Richard Miller <miller.research@gmail.com> | 2016-04-06 18:42:14 +0100 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-06 18:45:00 +0000 |
| commit | a25e368f44941c22406b2f88535ec9e812fd4dba (patch) | |
| tree | 692890d48f0821ddeca760a305e17725947b4840 /src/encoding | |
| parent | 5176a4b39b4595e5d9025e7aaf19146c29b7e349 (diff) | |
| download | go-a25e368f44941c22406b2f88535ec9e812fd4dba.tar.xz | |
test: make goprint.go wait for goroutine termination
Test goprint.go sometimes failed on a slow builder (plan9_arm)
because of timing dependency. Instead of sleeping for a fixed
time to allow the child goroutine to finish, wait explicitly for
child termination by calling runtime.NumGoroutine until the
returned value is 1.
Fixes #15097
Change-Id: Ib3ef5ec3c8277083c774542f48bcd4ff2f79efde
Reviewed-on: https://go-review.googlesource.com/21603
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
