Skip to content

Commit 1e8764f

Browse files
committed
Fix test
1 parent dbfa8a6 commit 1e8764f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/abq_cli/tests/cli.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,11 @@ test_all_network_config_options! {
22952295
exit_status,
22962296
} = Abq::new(name.to_string() + "_test1").args(test_args(1)).run();
22972297

2298-
assert_eq!(exit_status.code().unwrap(), 1, "STDOUT:\n{stdout}\nSTDERR:\n{stderr}");
2298+
assert_eq!(exit_status.code().unwrap(), 101, "STDOUT:\n{stdout}\nSTDERR:\n{stderr}");
2299+
assert!(
2300+
stderr.contains("Error: This ABQ run was cancelled. When an ABQ run is cancelled, it can no longer be retried. You must start a run with a new run ID instead.\nThis run was cancelled because a worker received a cancellation signal while still working on tests."),
2301+
"STDOUT:\n{stdout}\nSTDERR:\n{stderr}"
2302+
);
22992303

23002304
// ABQ report should error because the test run was cancelled.
23012305
// abq report --reporter dot --queue-addr ... --run-id ... (--token ...)?

0 commit comments

Comments
 (0)