tests: a node's spend is its own join
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d846363781
commit
c8919594c6
1 changed files with 4 additions and 0 deletions
|
|
@ -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![
|
||||
|
|
|
|||
Loading…
Reference in a new issue