diff options
author | Bryan C. Mills <bcmills@google.com> | 2021-01-15 10:16:25 -0500 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2021-01-15 18:29:43 +0000 |
commit | 1deae0b59747ea87d0ef02b6dfdfbbdf5e7bcee8 (patch) | |
tree | 87fd575cd04bf0176fd06ae8a186acfcaa9a1ba5 /api | |
parent | ff196c3e84b7e8d47285a0833d0458db3286f8ec (diff) | |
download | go-1deae0b59747ea87d0ef02b6dfdfbbdf5e7bcee8.tar.gz go-1deae0b59747ea87d0ef02b6dfdfbbdf5e7bcee8.zip |
os: invoke processKiller synchronously in testKillProcess
Previously, testKillProcess needlessly invoked processKiller in a
separate goroutine and failed to wait for that goroutine to complete,
causing the calls to t.Fatalf in that goroutine to potentially occur
after the test function had already returned.
Fixes #43722
Change-Id: I5d03cb24af51bb73f0ff96419dac57ec39776967
Reviewed-on: https://go-review.googlesource.com/c/go/+/284153
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions