Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tests): correct model assertion in budget gate test

Steven Enamakelfca3c657e189
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate_tests.rs
index 3731701ced..94825c57e1 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate_tests.rs
@@ -46,7 +46,7 @@ async fn an_empty_model_does_not_erase_the_attribution() {
gate.acquire(&CallEstimate::new(" ", 1, 1))
.await
.expect("grants");
- assert_eq!(gate.attributed_model(), "pinned-model");
+ assert_eq!(gate.attributed_model(), Some("pinned-model".to_string()));
}
#[tokio::test]