diff options
| author | Jonathan Amsterdam <jba@google.com> | 2025-05-13 11:50:58 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-05-13 12:26:50 -0700 |
| commit | afd6b0bc663cf49e74200729da91785219d28b53 (patch) | |
| tree | 9a1daf41f44c1452c4dc939f8e493f4cbfdde76b /src/testing/panic_test.go | |
| parent | 9bba799955e68972041c4f340ee4ea2d267e5c0e (diff) | |
| download | go-afd6b0bc663cf49e74200729da91785219d28b53.tar.xz | |
Revert "testing: add Output"
This reverts commit 8d189f188e225e4919b34c0c097e75dfda255949.
Reason for revert: failing test
Change-Id: I951087eaef7818697acf87e3206003bcc8a81ee2
Reviewed-on: https://go-review.googlesource.com/c/go/+/672335
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/testing/panic_test.go')
| -rw-r--r-- | src/testing/panic_test.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/testing/panic_test.go b/src/testing/panic_test.go index fc84175ee6..1c42f9f8dd 100644 --- a/src/testing/panic_test.go +++ b/src/testing/panic_test.go @@ -34,7 +34,6 @@ func TestPanic(t *testing.T) { want: ` --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper `, }, { desc: "subtest panics", @@ -42,10 +41,8 @@ func TestPanic(t *testing.T) { want: ` --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }, { desc: "subtest panics with cleanup", @@ -56,10 +53,8 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }, { desc: "subtest panics with outer cleanup panic", @@ -70,7 +65,6 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper `, }, { desc: "subtest panics with middle cleanup panic", @@ -81,10 +75,8 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }, { desc: "subtest panics with inner cleanup panic", @@ -95,10 +87,8 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }, { desc: "parallel subtest panics with cleanup", @@ -109,10 +99,8 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }, { desc: "parallel subtest panics with outer cleanup panic", @@ -123,7 +111,6 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper `, }, { desc: "parallel subtest panics with middle cleanup panic", @@ -134,10 +121,8 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }, { desc: "parallel subtest panics with inner cleanup panic", @@ -148,10 +133,8 @@ ran middle cleanup 1 ran outer cleanup --- FAIL: TestPanicHelper (N.NNs) panic_test.go:NNN: TestPanicHelper - TestPanicHelper --- FAIL: TestPanicHelper/1 (N.NNs) panic_test.go:NNN: TestPanicHelper/1 - TestPanicHelper/1 `, }} for _, tc := range testCases { @@ -182,7 +165,6 @@ func TestPanicHelper(t *testing.T) { return } t.Log(t.Name()) - t.Output().Write([]byte(t.Name())) if t.Name() == *testPanicTest { panic("panic") } @@ -213,7 +195,6 @@ func TestPanicHelper(t *testing.T) { t.Parallel() } t.Log(t.Name()) - t.Output().Write([]byte(t.Name())) if chosen { if *testPanicCleanup { t.Cleanup(func() { |
