connector-spend: pin that a clock reading exactly at the window start is not behind it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
85afd90a95
commit
68c6fd7b2a
1 changed files with 6 additions and 1 deletions
|
|
@ -3530,7 +3530,12 @@ mod tests {
|
|||
);
|
||||
assert!(service.live.is_empty());
|
||||
assert_eq!(service.window_spend(CALLER, 5), 3 * FIXTURE_USAGE_COST);
|
||||
// Inside the full window the clock is not behind: an honest ceiling.
|
||||
// At the window's first instant, and inside it, the clock is not
|
||||
// behind: an honest ceiling.
|
||||
assert_eq!(
|
||||
refusal_at(&mut service, "at-start", 50_000, MAX_COST),
|
||||
Refusal::SpendCeiling
|
||||
);
|
||||
assert_eq!(
|
||||
refusal_at(&mut service, "inside", 50_500, MAX_COST),
|
||||
Refusal::SpendCeiling
|
||||
|
|
|
|||
Loading…
Reference in a new issue