Skip to content

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

test(inference): use managed fixture config in native tests

Steven Enamakelce817f2bd953
diff --git a/crates/openhuman-core/src/inference/turn_models_native_tests.rs b/crates/openhuman-core/src/inference/turn_models_native_tests.rs
index fdee0c42b9..374b25ee98 100644
--- a/crates/openhuman-core/src/inference/turn_models_native_tests.rs
+++ b/crates/openhuman-core/src/inference/turn_models_native_tests.rs
@@ -67,7 +67,8 @@ async fn native_budget_wrapping_keeps_owner_error_slots_for_primary_tiers_and_su
extensions,
);
let ctx = DispatchCtx::new(context);
- let config = Arc::new(crate::config::Config::default());
+ let tmp = tempfile::tempdir().expect("isolated workspace");
+ let config = Arc::new(managed_fixture_config(&tmp));
let budget = ModelBudget {
ledger: tinyinference_llm::model::budget::Budget::new(SpendLimits {
tokens: Some(0),