tests: follow the open-window wording and the refused wave's empty node

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 14:50:14 +01:00
commit 2eef1a85be
2 changed files with 2 additions and 2 deletions

View file

@ -516,7 +516,7 @@ mod tests {
assert_eq!(next.allowances, LaneTokens { wave: 0, elaboration: 5_000_000 });
assert_eq!(next.focus, vec![Lease { target: Target::Place(gate), until: 130 }]);
assert_eq!(next.knobs.cells, current.knobs.cells, "the cover is not the DM\'s to tune");
assert!(said.contains("depth 8") && said.contains("next window"), "{said}");
assert!(said.contains("depth 8") && said.contains("open too"), "{said}");
let again = json!({"focus_add": [{"target": id_text(gate), "lease_minutes": 10}]});
let (renewed, _) = tune(&next, &again.to_string(), &world, 110).unwrap();

View file

@ -1108,7 +1108,7 @@ pub(crate) mod tests {
advance(&host, 400).await;
run_waves(&host, 1).await;
let refused = wave_of(&host, 1).await.unwrap().report.unwrap();
assert!(refused.out_of_allowance && refused.nodes.is_empty(), "{refused:?}");
assert!(refused.out_of_allowance && refused.nodes.iter().all(|node| node.acts.is_empty()), "{refused:?}");
let revision = wave_of(&host, 1).await.unwrap().revision;
allow(&host, |allowances| allowances.wave = 200_000).await;
run_waves(&host, 2).await;