Skip to content

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

fix(test): use struct literal syntax in offline session test

Steven Enamakel3d4b4a10ba92
diff --git a/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs b/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
index 3e31f1e981..d0a2aa219b 100644
--- a/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
+++ b/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
@@ -19,9 +19,12 @@ fn other_failures_pass_through_unchanged() {
#[tokio::test]
async fn offline_local_session_refuses_without_a_request() {
let tmp = tempfile::TempDir::new().unwrap();
- let mut config = Config::default();
- config.workspace_dir = tmp.path().join("workspace");
- config.config_path = tmp.path().join("config.toml");
+ let config = Config {
+ workspace_dir: tmp.path().join("workspace"),
+ action_dir: tmp.path().join("workspace"),
+ config_path: tmp.path().join("config.toml"),
+ ..Config::default()
+ };
crate::security::credentials::AuthService::from_config(&config)
.store_provider_token(
crate::security::credentials::APP_SESSION_PROVIDER,