From 6f5da6149744fb7b6c375a06e372c265f423e9eb Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Tue, 7 Apr 2026 15:35:29 -0400 Subject: [PATCH] fix(server): update aggregate billing test --- lib/crates/fabro-server/src/server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/crates/fabro-server/src/server.rs b/lib/crates/fabro-server/src/server.rs index bb6db29ce..39660b5df 100644 --- a/lib/crates/fabro-server/src/server.rs +++ b/lib/crates/fabro-server/src/server.rs @@ -5870,13 +5870,13 @@ mod tests { } #[tokio::test] - async fn get_aggregate_usage_returns_zeros_initially() { + async fn get_aggregate_billing_returns_zeros_initially() { let state = create_app_state(); let app = build_router(Arc::clone(&state), AuthMode::Disabled); let req = Request::builder() .method("GET") - .uri(api("/usage")) + .uri(api("/billing")) .body(Body::empty()) .unwrap(); @@ -5887,8 +5887,8 @@ mod tests { assert_eq!(body["totals"]["runs"].as_i64().unwrap(), 0); assert_eq!(body["totals"]["input_tokens"].as_i64().unwrap(), 0); assert_eq!(body["totals"]["output_tokens"].as_i64().unwrap(), 0); - assert_eq!(body["totals"]["cost"].as_f64().unwrap(), 0.0); assert_eq!(body["totals"]["runtime_secs"].as_f64().unwrap(), 0.0); + assert!(body["totals"]["total_usd_micros"].is_null()); assert!(body["by_model"].as_array().unwrap().is_empty()); }