Skip to content

Commit 04fce69

Browse files
committed
WIP
1 parent 14a79d1 commit 04fce69

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/coder.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ jobs:
340340
341341
- uses: actions/upload-artifact@v3
342342
with:
343-
name: gotestsum debug (TestEvents)
343+
name: gotestsum-debug-${{ matrix.os }}.json
344344
path: ./gotestsum.json
345345
retention-days: 7
346346

@@ -407,7 +407,7 @@ jobs:
407407

408408
- uses: actions/upload-artifact@v3
409409
with:
410-
name: gotestsum debug (TestEvents)
410+
name: gotestsum-debug-${{ matrix.os }}.json
411411
path: ./gotestsum.json
412412
retention-days: 7
413413

pty/ptytest/ptytest.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ 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-
t.Fatalf("%s: %s %s", name, reason, fmt.Sprintf(format, args...))
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...)
206210
}
207211

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

0 commit comments

Comments
 (0)