queue, launch tests: read the hold through the snapshot the tests build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3e48e122af
commit
532855d21a
2 changed files with 2 additions and 2 deletions
|
|
@ -1100,7 +1100,7 @@ mod tests {
|
|||
"the hold was read once for the whole launch"
|
||||
);
|
||||
assert_eq!(
|
||||
on_hold(&rig.mind).unwrap().items(),
|
||||
crate::queue::on_hold(&rig.mind).unwrap().items(),
|
||||
[spec_ref("x")],
|
||||
"the question did land"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ mod tests {
|
|||
mind.committed(vec![spec("x")]);
|
||||
let port = HuginnMind::over(Slug(INSTANCE.into()), Box::new(|request| Ok(mind.answer(request))));
|
||||
assert_eq!(port.instance().0, INSTANCE);
|
||||
assert_eq!(queue(&port, port.instance(), &[]).unwrap(), vec![spec_ref("x")]);
|
||||
assert_eq!(queued(&port, port.instance(), &[]).unwrap(), vec![spec_ref("x")]);
|
||||
let outcome = port.admit("agent-x", "session-y", vec![run("p", RunTurn::PersonaTurn, RunOperator::Mind, &[])]).unwrap();
|
||||
assert!(matches!(outcome, PipelineAdmissionOutcome::Committed { .. }), "{outcome:?}");
|
||||
let facts = mind.view(PipelineKind::Run, &run_ref("p").id.0).unwrap().admission.provenance;
|
||||
|
|
|
|||
Loading…
Reference in a new issue