Skip to content

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

test(tinysearch): assert pinned version against registry

Steven Enamakelb1894573dab7
diff --git a/tests/tinysearch_module_e2e.rs b/tests/tinysearch_module_e2e.rs
index 38f7b4e4b1..76c9620e93 100644
--- a/tests/tinysearch_module_e2e.rs
+++ b/tests/tinysearch_module_e2e.rs
@@ -19,7 +19,9 @@ async fn pinned_search_module_serves_host_contract_and_rejects_disabled_executio
.load_file_with_config(file, serde_json::to_value(config).unwrap())
.expect("published artifact is admitted by the host loader");
assert_eq!(info.name, "tinysearch");
- assert_eq!(info.version, "0.4.2");
+ // The registry pin is the single statement of which release is shipped.
+ let pinned = openhuman_core::modules::registry::find("tinysearch").expect("registered");
+ assert_eq!(info.version, pinned.version);
let client = tinybus::Connection::connect(bus.connect().await.unwrap())
.await
.unwrap();