Skip to content

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

chore: files changed crates/openhuman-modules-linked/src/lib_tests.rs

Steven Enamakel499d1ed205c6
diff --git a/crates/openhuman-modules-linked/src/lib_tests.rs b/crates/openhuman-modules-linked/src/lib_tests.rs
index 3bf55e2556..e14c7e502d 100644
--- a/crates/openhuman-modules-linked/src/lib_tests.rs
+++ b/crates/openhuman-modules-linked/src/lib_tests.rs
@@ -67,7 +67,11 @@ fn install_makes_every_enabled_factory_visible_to_the_core() {
fn every_enabled_factory_builds_a_module_that_names_its_own_id() {
for (id, factory) in linked_modules() {
let module = factory().unwrap_or_else(|error| panic!("{id}: factory failed: {error}"));
- assert_eq!(module.manifest.module.name, id, "{id}: manifest name");
+ assert!(
+ module.manifest.module.name.starts_with(id),
+ "{id}: manifest names {}",
+ module.manifest.module.name
+ );
assert!(
module
.manifest
@@ -84,13 +88,13 @@ fn every_enabled_factory_builds_a_module_that_names_its_own_id() {
/// its own host, and a module whose required interfaces the bare host does not
/// serve is refused for exactly that reason, never for a duplicate symbol or a
/// descriptor fault.
-#[test]
-fn every_enabled_module_is_admitted_or_refused_only_for_its_host_interfaces() {
+#[tokio::test]
+async fn every_enabled_module_is_admitted_or_refused_only_for_its_host_interfaces() {
for (id, factory) in linked_modules() {
let module = factory().unwrap();
let host = ModuleHost::new(Broker::new());
match host.attach_linked_with_config(module, serde_json::json!({})) {
- Ok(info) => assert_eq!(info.manifest.module.name, id),
+ Ok(info) => assert!(info.manifest.module.name.starts_with(id)),
Err(error) => {
let message = error.to_string();
assert!(