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:
Meta Vens 2026-10-22 20:19:43 +02:00
commit 672f2b4352

View file

@ -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);
}