Skip to content

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

fix(test): correct assertion order in cloud transcribe test

Steven Enamakele6d47076d3f0
diff --git a/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs b/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
index 1d2abb8311..8ac69edfec 100644
--- a/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
+++ b/crates/openhuman-core/src/voice/cloud_transcribe_tests.rs
@@ -127,8 +127,8 @@ async fn api_key_transcribes_via_safe_backend_with_bearer_and_multipart_audio()
.as_deref()
.unwrap()
.starts_with("multipart/form-data; boundary="));
- let body = String::from_utf8(body).unwrap();
+ assert!(body.windows(3).any(|bytes| bytes == [1, 2, 3]));
+ let body = String::from_utf8_lossy(&body);
assert!(body.contains("name=\"file\""));
- assert!(body.as_bytes().windows(3).any(|bytes| bytes == [1, 2, 3]));
assert!(body.contains("name=\"model\""));
}