Skip to content

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

test(voice): register provider server tests module

Steven Enamakel47880d601da8
diff --git a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs
index 139ced3635..87499c19cc 100644
--- a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs
+++ b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs
@@ -418,3 +418,7 @@ pub(crate) fn handle_voice_test_provider(
}
})
}
+
+#[cfg(test)]
+#[path = "provider_server_tests.rs"]
+mod tests;
diff --git a/crates/openhuman-core/src/voice/schemas/handlers/provider_server_tests.rs b/crates/openhuman-core/src/voice/schemas/handlers/provider_server_tests.rs
index 5faa96e637..2118384b81 100644
--- a/crates/openhuman-core/src/voice/schemas/handlers/provider_server_tests.rs
+++ b/crates/openhuman-core/src/voice/schemas/handlers/provider_server_tests.rs
@@ -21,9 +21,12 @@ stt_engine = "elevenlabs"
.await
.expect("setting the backend provider should succeed");
- let config = crate::config::Config::load_from_config_path(&config_path, dir.path())
- .await
- .unwrap();
+ let config = crate::config::Config::load_from_config_path(
+ &config_path,
+ &dir.path().join("workspace"),
+ )
+ .await
+ .unwrap();
assert_eq!(config.voice_server.stt_engine, crate::config::SttEngine::Backend);
assert_eq!(crate::voice::effective_stt_provider(&config), "cloud");