Skip to content

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

test(cloud_transcribe): replace into_result with value in test assertion

Steven Enamakel540478a55428
diff --git a/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs b/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
index aa33c3af86..143309e197 100644
--- a/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
+++ b/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use axum::{body::Bytes, extract::State, routing::post, Router};
+use axum::{body::Bytes, routing::post, Router};
use std::sync::{Arc, Mutex};
#[test]
@@ -123,8 +123,7 @@ async fn api_key_transcribes_via_safe_backend_with_bearer_and_multipart_audio()
)
.await
.unwrap()
- .into_result()
- .unwrap();
+ .value;
assert_eq!(outcome.text, "recognized words");
let (authorization, content_type, body) = request.lock().unwrap().take().unwrap();
assert_eq!(authorization.as_deref(), Some("Bearer test-api-key"));