mind-self-run tests: borrow the outcome instead of moving it (the previous two commits did not compile the lib tests)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ad02ba9055
commit
672f2b4352
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ fn a_result_before_any_request_closes_the_input_once_and_the_run_ends_with_a_typ
|
|||
let ran = carry_with(&Seen::of(&with_run()), vec![Out(result_line())], Some(1), false);
|
||||
assert_eq!(ran.count(&Event::InputClosed), 1);
|
||||
assert_eq!(ran.ended(), (Cause::Own, Some(1), 0, 0));
|
||||
assert_eq!(ran.outcome.unwrap().exit_status(), 1);
|
||||
assert_eq!(ran.outcome.as_ref().unwrap().exit_status(), 1);
|
||||
assert_eq!(ran.count(&Event::Stopped(Stop::Interrupt)), 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue