Skip to content

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

test(embed): supply api key in offline fixtures

Steven Enamakel4b809c7d2b1b
diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rs
index 5b445fc305..bfe044f0b5 100644
--- a/crates/openhuman-embed/tests/common/mod.rs
+++ b/crates/openhuman-embed/tests/common/mod.rs
@@ -44,10 +44,6 @@ pub fn chat_completion(content: &str) -> serde_json::Value {
/// which is the recipe already proven against real turns.
pub fn offline_config() -> Config {
let mut config = Config::default();
- // These fixtures use explicit local providers and no signed-in session.
- // The production scheduler gate intentionally parks LLM work while the
- // host is signed out, so keep it out of unrelated embed behavior tests.
- config.scheduler_gate.mode = openhuman_core::config::schema::SchedulerGateMode::Off;
config.local_ai.runtime_enabled = false;
// Conversation memory ingest is intentionally fire-and-forget. It can
// still be buffering after a turn returns, which is useful in the product
diff --git a/crates/openhuman-embed/tests/isolation_state.rs b/crates/openhuman-embed/tests/isolation_state.rs
index ab4f5292c3..0e8d993bee 100644
--- a/crates/openhuman-embed/tests/isolation_state.rs
+++ b/crates/openhuman-embed/tests/isolation_state.rs
@@ -62,6 +62,7 @@ fn agents_on_one_workspace_keep_their_own_state() {
.config(offline_config())
.workspace(Workspace::Ephemeral)
.backend_url(backend.uri())
+ .api_key("offline-test-key")
.access(Access::full())
.build()
.await
diff --git a/crates/openhuman-embed/tests/route_headers.rs b/crates/openhuman-embed/tests/route_headers.rs
index b479520898..22f8bbf33a 100644
--- a/crates/openhuman-embed/tests/route_headers.rs
+++ b/crates/openhuman-embed/tests/route_headers.rs
@@ -17,6 +17,7 @@ async fn scenario() {
.config(offline_config())
.workspace(Workspace::Ephemeral)
.backend_url(backend.uri())
+ .api_key("offline-test-key")
.build()
.await
.unwrap();