Skip to content

Commit 6eba181

Browse files
author
vilmibm
committed
another failure
1 parent 945343d commit 6eba181

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pkg/cmd/run/watch/watch_test.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,20 @@ func TestWatchRun(t *testing.T) {
238238
},
239239
{
240240
name: "intentionally failing test",
241+
tty: true,
241242
skipWindows: true,
242-
opts: &WatchOptions{},
243+
opts: &WatchOptions{
244+
Interval: 0,
245+
Prompt: true,
246+
ExitStatus: true,
247+
},
248+
httpStubs: failedRunStubs,
249+
askStubs: func(as *prompt.AskStubber) {
250+
as.StubOne(1)
251+
},
252+
wantOut: "\x1b[2J\x1b[0;0H\x1b[JRefreshing run status every 0 seconds. Press Ctrl+C to quit.\n\n- trunk more runs · 2\nTriggered via push about 59 minutes ago\n\n\x1b[0;0H\x1b[JRefreshing run status every 0 seconds. Press Ctrl+C to quit.\n\nX trunk more runs · 2\nTriggered via push about 59 minutes ago\n\nJOBS\nX sad job in 4m34s (ID 20)\n ✓ barf the quux\n X quux the barf\n\nANNOTATIONS\nX the job is sad\nsad job: blaze.py#420\n\n\nX Run more runs (2) completed with 'failure'\n",
253+
wantErr: true,
254+
errMsg: "Error",
243255
},
244256
{
245257
name: "exit status respected",

0 commit comments

Comments
 (0)