Skip to content

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

test(inbound): add env lock to host callback test

Steven Enamakel9dff757e3be4
diff --git a/crates/openhuman-core/src/inbound/host_tests.rs b/crates/openhuman-core/src/inbound/host_tests.rs
index 51ac7b1b7a..636529d4fc 100644
--- a/crates/openhuman-core/src/inbound/host_tests.rs
+++ b/crates/openhuman-core/src/inbound/host_tests.rs
@@ -55,6 +55,8 @@ async fn deliver_and_classify_go_to_the_deliverer() {
#[tokio::test]
async fn install_serves_the_callbacks_under_the_contract_name() {
+ // `install` loads the host config; hold the env lock the config tests use.
+ let _env = crate::config::TEST_ENV_LOCK.lock().await;
let bus = tinybus::transport::memory::MemoryBus::new();
tinybus::broker::Broker::new().spawn(bus.clone());
let connection = tinybus::Connection::connect(bus.connect().await.unwrap())