From c8919594c65455a2384364a6732f25308475f46c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 3 Dec 2026 10:40:13 +0100 Subject: [PATCH] tests: a node's spend is its own join Co-Authored-By: Claude Sonnet 5.5 --- crates/ghostlight/src/verse/run/tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ghostlight/src/verse/run/tests.rs b/crates/ghostlight/src/verse/run/tests.rs index 6011ee3..08ed4eb 100644 --- a/crates/ghostlight/src/verse/run/tests.rs +++ b/crates/ghostlight/src/verse/run/tests.rs @@ -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![