Skip to content

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

test: update voice config and subagent cancel expectations

Steven Enamakela4c44a73a7c0
diff --git a/tests/legacy_voice_config_boot_e2e.rs b/tests/legacy_voice_config_boot_e2e.rs
index 2f7680b1d7..382508ba72 100644
--- a/tests/legacy_voice_config_boot_e2e.rs
+++ b/tests/legacy_voice_config_boot_e2e.rs
@@ -90,6 +90,9 @@ hotkey = "Ctrl+Shift+Space"
[voice_server]
always_on_enabled = true
stt_engine = "elevenlabs"
+
+[secrets]
+encrypt = false
"#,
)
.unwrap();
@@ -143,7 +146,7 @@ fn legacy_voice_settings_boot_without_starting_retired_listeners() {
);
assert!(
credential.get("error").is_none(),
- "installing the local test credential failed"
+ "installing the local test credential failed: {credential}"
);
let status = rpc(&base, "openhuman.voice_status", json!({}));
let voice_enabled = status.get("error").is_none();
diff --git a/tests/raw_coverage/agent_orchestration_e2e.rs b/tests/raw_coverage/agent_orchestration_e2e.rs
index c1d8ee5101..c3b874c459 100644
--- a/tests/raw_coverage/agent_orchestration_e2e.rs
+++ b/tests/raw_coverage/agent_orchestration_e2e.rs
@@ -226,7 +226,7 @@ fn str_at<'a>(value: &'a Value, pointer: &str) -> &'a str {
/// The background-tasks drawer's Cancel control remains available; the old
/// steer RPC is no longer part of the surface.
#[tokio::test]
-async fn subagent_steer_is_method_not_found_and_cancel_remains_available() {
+async fn subagent_steer_is_method_not_found_and_cancel_requires_a_task_id() {
let _lock = env_lock_async().await;
let h = setup().await;
@@ -236,9 +236,9 @@ async fn subagent_steer_is_method_not_found_and_cancel_remains_available() {
assert_eq!(unknown, "unknown method: openhuman.subagent_steer");
let cancel = h
- .ok(3505, "openhuman.subagent_cancel", json!({ "taskId": "sub-not-running" }))
+ .err(3505, "openhuman.subagent_cancel", json!({}))
.await;
- assert_eq!(cancel.get("cancelled").and_then(Value::as_bool), Some(false));
+ assert_eq!(cancel, "taskId is required");
h.join.abort();
}