Skip to content

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

test(web_chat): simplify model override setup in ingress test

Steven Enamakelc849e03bf68b
diff --git a/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs
index e3c8d91609..58ac8d2874 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_start_chat_ingress_tests.rs
@@ -12,9 +12,8 @@ async fn ptt_source_turn_completes_without_publishing_a_voice_event() {
let model = Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
"hello from mock",
]));
- let _model = crate::inference::provider::factory::test_provider_override::install_model(
- Arc::clone(&model),
- );
+ let _model =
+ crate::inference::provider::factory::test_provider_override::install_model(model.clone());
let temp = tempfile::tempdir().expect("temporary test workspace");
let workspace_dir = temp.path().join("workspace");
let action_dir = temp.path().join("projects");