]> Cypherpunks repositories - gostls13.git/commit
testing: synchronize writes to the root's Writer
authorJoe Tsai <joetsai@digital-static.net>
Sun, 22 Jan 2017 04:07:26 +0000 (20:07 -0800)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 1 Feb 2017 19:27:39 +0000 (19:27 +0000)
commit7f31971f594edbacbdba5407aaee042850fbd220
treeb37a3932156d4d78c42b4a1408153e511618c653
parent048b8cecc6e74b50205e803ca387ffaa7e9f37fe
testing: synchronize writes to the root's Writer

Prior to this change it was possible to see interleaved messages:
<<<
=== RUN   Test/LongLongLongLongName48
=== RUN   Test/LongLon=== RUN   Test/LongLongLongLongName50
gLongLongName49
=== RUN   Test/LongLongLongLongName51
>>>

This change fixes it such that you see:
<<<
=== RUN   Test/LongLongLongLongName48
=== RUN   Test/LongLongLongLongName49
=== RUN   Test/LongLongLongLongName50
=== RUN   Test/LongLongLongLongName51
>>>

Fixes #18741

Change-Id: I2529d724065dc65b3e9eb3d7cbeeda82a2d0cfd4
Reviewed-on: https://go-review.googlesource.com/35556
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
src/testing/sub_test.go
src/testing/testing.go