Skip to content

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

test(voice): remove assertions for deleted voice config fields

Steven Enamakelfc328ecbd28e
diff --git a/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs b/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs
index d65d0d7dc0..efb970a5ca 100644
--- a/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs
+++ b/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs
@@ -54,8 +54,6 @@ async fn load_and_apply_voice_server_settings_rejects_invalid_activation_mode()
min_duration_secs: None,
silence_threshold: None,
custom_dictionary: None,
- always_on_enabled: None,
- wake_word: None,
stt_engine: None,
};
let err = load_and_apply_voice_server_settings(&DispatchCtx::process_default(), patch)
@@ -111,8 +109,6 @@ async fn load_and_apply_voice_server_settings_accepts_valid_modes_and_clamps() {
min_duration_secs: Some(-5.0),
silence_threshold: Some(-1.0),
custom_dictionary: Some(vec!["term".into()]),
- always_on_enabled: Some(true),
- wake_word: Some("Hey Tiny".to_string()),
stt_engine: Some("elevenlabs".into()),
};
let outcome = load_and_apply_voice_server_settings(&DispatchCtx::process_default(), patch)
@@ -154,8 +150,6 @@ async fn load_and_apply_voice_server_settings_rejects_unknown_stt_engine() {
min_duration_secs: None,
silence_threshold: None,
custom_dictionary: None,
- always_on_enabled: None,
- wake_word: None,
// The removed local engine is the case that matters: an old client
// could still send it.
stt_engine: Some("whisper".into()),
diff --git a/crates/openhuman-core/src/modules/voice_tests.rs b/crates/openhuman-core/src/modules/voice_tests.rs
index f3a4c8d47d..7a1c71451d 100644
--- a/crates/openhuman-core/src/modules/voice_tests.rs
+++ b/crates/openhuman-core/src/modules/voice_tests.rs
@@ -63,14 +63,6 @@ async fn a_disabled_host_reports_unavailable_without_starting_a_broker() {
let mut config = offline_config();
config.modules.enabled = false;
- assert!(matches!(
- super::route(&config, "pause").await,
- Err(VoiceCallError::Unavailable(_))
- ));
- assert!(matches!(
- super::sequence_utterance(&config, "hey tiny pause", "Hey Tiny").await,
- Err(VoiceCallError::Unavailable(_))
- ));
assert!(matches!(
super::gate_recording(
&config,
@@ -88,10 +80,6 @@ async fn a_disabled_host_reports_unavailable_without_starting_a_broker() {
super::is_hallucinated(&config, "okay", HallucinationMode::Dictation).await,
Err(VoiceCallError::Unavailable(_))
));
- assert!(matches!(
- super::encode_wav(&config, &[0.1, 0.2], 16_000).await,
- Err(VoiceCallError::Unavailable(_))
- ));
assert!(matches!(
super::prepare_capture(&config, &[0.1, 0.2], 32_000, 2, 0.0).await,
Err(VoiceCallError::Unavailable(_))
diff --git a/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs b/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs
index 86ad4fc6c4..03511d1698 100644
--- a/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs
@@ -500,7 +500,6 @@ async fn start_credential_gated_services_completes_with_all_services_disabled()
// touching the mic, a model, the screen, or the network.
config.local_ai.runtime_enabled = false;
config.voice_server.auto_start = false;
- config.voice_server.always_on_enabled = false;
// Bound the wait so a serial-blocking regression (or a hung join) fails the
// test instead of hanging CI. Every service no-ops, so this resolves almost