tests: a node's spend is its own join

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 10:40:13 +01:00
commit c8919594c6

View file

@ -3194,6 +3194,10 @@ async fn a_tick_report_lists_deferred_nodes_with_their_reasons() {
};
let ran = report.nodes.iter().find(|node| node.acts.len() == 1).unwrap();
let stopped = report.nodes.iter().find(|node| node.acts.is_empty()).unwrap();
// Each node's spend is its own join: the one that ran paid, the one the
// allowance refused made no recorded call.
assert!(ran.spent > 0);
assert_eq!(stopped.spent, 0);
assert_eq!(
report.deferred,
vec![