]> Cypherpunks repositories - gostls13.git/commit
testing: print late arriving log line in panic
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 14 Jan 2021 22:38:55 +0000 (14:38 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 24 Feb 2021 16:38:56 +0000 (16:38 +0000)
commit27684ea195641ead8a8f08cb345925da889a12ed
tree4d21632fe63abd13843396dc3f42ddbbcbe02208
parentae1fa08e4138c49c8e7fa10c3eadbfca0233842b
testing: print late arriving log line in panic

When you log after a test has completed,
the testing package panics.

Print the logged line as part of that panic,
to aid in debugging.

Change-Id: I3d6689d1eed57c03e300afe37db0c15b2f4acda4
Reviewed-on: https://go-review.googlesource.com/c/go/+/283972
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/sub_test.go
src/testing/testing.go