Skip to content

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

test: update e2e tests for keyring master key and cancel error message

Steven Enamakel57f456864fe7
diff --git a/tests/legacy_voice_config_boot_e2e.rs b/tests/legacy_voice_config_boot_e2e.rs
index 382508ba72..d0b4a34756 100644
--- a/tests/legacy_voice_config_boot_e2e.rs
+++ b/tests/legacy_voice_config_boot_e2e.rs
@@ -90,9 +90,6 @@ hotkey = "Ctrl+Shift+Space"
[voice_server]
always_on_enabled = true
stt_engine = "elevenlabs"
-
-[secrets]
-encrypt = false
"#,
)
.unwrap();
@@ -128,6 +125,7 @@ fn legacy_voice_settings_boot_without_starting_retired_listeners() {
.env("OPENHUMAN_DOTENV_PATH", &dotenv_path)
.env("OPENHUMAN_CORE_TOKEN", TOKEN)
.env("OPENHUMAN_KEYRING_BACKEND", "file")
+ .env("OPENHUMAN_KEYRING_MASTER_KEY", "0000000000000000000000000000000000000000000000000000000000000000")
.env("RUST_LOG", "info")
.env("BACKEND_URL", backend_url)
.env_remove("OPENHUMAN_BACKEND_API_KEY")
diff --git a/tests/raw_coverage/agent_orchestration_e2e.rs b/tests/raw_coverage/agent_orchestration_e2e.rs
index c3b874c459..48397ba597 100644
--- a/tests/raw_coverage/agent_orchestration_e2e.rs
+++ b/tests/raw_coverage/agent_orchestration_e2e.rs
@@ -238,7 +238,10 @@ async fn subagent_steer_is_method_not_found_and_cancel_requires_a_task_id() {
let cancel = h
.err(3505, "openhuman.subagent_cancel", json!({}))
.await;
- assert_eq!(cancel, "taskId is required");
+ assert!(
+ cancel.starts_with("missing required param 'taskId'"),
+ "the registered cancel controller validates taskId: {cancel}"
+ );
h.join.abort();
}