Skip to content

Commit f823b02

Browse files
committed
Fix: improve ptytest
1 parent c77c1b4 commit f823b02

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pty/ptytest/ptytest.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,7 @@ func logf(t *testing.T, name, format string, args ...interface{}) {
202202
func fatalf(t *testing.T, name, reason, format string, args ...interface{}) {
203203
t.Helper()
204204

205-
// Ensure the message is part of the normal log stream before
206-
// failing the test.
207-
logf(t, name, "%s: %s", reason, fmt.Sprintf(format, args...))
208-
209-
require.FailNowf(t, reason, format, args...)
205+
panic(fmt.Sprintf("%s: %s %s", name, reason, fmt.Sprintf(format, args...)))
210206
}
211207

212208
// stdbuf is like a buffered stdout, it buffers writes until read.

0 commit comments

Comments
 (0)