Skip to content

Commit b999374

Browse files
cpugopherbot
authored andcommitted
acme: fix pebble subprocess output data race
Wait for process completion before reading stdout/stderr buffers to eliminate race between I/O Go routines and test cleanup. Updates golang/go#74437 Cq-Include-Trybots: luci.golang.try:x_crypto-gotip-linux-amd64-longtest-race Change-Id: I2e650c04db5be0d7a1e858ce40e25f13ad12223c Reviewed-on: https://go-review.googlesource.com/c/crypto/+/693596 Auto-Submit: Daniel McCarney <daniel@binaryparadox.net> Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent c247dea commit b999374

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

acme/pebble_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ func spawnServerProcess(t *testing.T, dir string, cmd string, args ...string) {
789789

790790
t.Cleanup(func() {
791791
cmdInstance.Process.Kill()
792+
cmdInstance.Wait()
792793

793794
if t.Failed() || testing.Verbose() {
794795
t.Logf("=== %s output ===", cmd)

0 commit comments

Comments
 (0)