Skip to content

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

test(inbound): assert linked module reaches ready state

Steven Enamakel612d43f8a8ab
diff --git a/crates/openhuman-core/src/inbound/linked_fixture.rs b/crates/openhuman-core/src/inbound/linked_fixture.rs
index fa47512e4a..f3fce739a1 100644
--- a/crates/openhuman-core/src/inbound/linked_fixture.rs
+++ b/crates/openhuman-core/src/inbound/linked_fixture.rs
@@ -377,6 +377,19 @@ impl Rig {
})
.await
.expect("the linked tinyeventqueues module claimed its name");
+ let module = modules
+ .list()
+ .into_iter()
+ .find(|info| info.name == "tinyeventqueues")
+ .expect("the linked tinyeventqueues module is registered");
+ assert!(
+ matches!(
+ module.state,
+ tinybus::module::ModuleState::Ready | tinybus::module::ModuleState::Serving
+ ),
+ "the linked tinyeventqueues module must be ready: {:?}",
+ module.state
+ );
let proxy = host
.proxy(names::INTERFACE, names::OBJECT_PATH, names::INTERFACE)
.unwrap();