queue tests: drop a merged duplicate of the daemon-port test body; slice the one claim
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
532855d21a
commit
4c217faf22
1 changed files with 1 additions and 5 deletions
|
|
@ -481,10 +481,6 @@ 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!(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;
|
||||
assert_eq!(
|
||||
queued(&port, port.instance(), &[]).unwrap(),
|
||||
vec![spec_ref("x")]
|
||||
|
|
@ -678,7 +674,7 @@ mod tests {
|
|||
mind.committed(vec![close(a.clone(), withdrawn())]);
|
||||
assert_eq!(
|
||||
on_hold(&mind).unwrap().items(),
|
||||
[b.clone()],
|
||||
std::slice::from_ref(&b),
|
||||
"a resolved claim drops out"
|
||||
);
|
||||
mind.committed(vec![close(b, withdrawn())]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue