Skip to content

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

test(core): assert major version for cron delivery removal

Steven Enamakel6223fe50531d
diff --git a/crates/openhuman-core/src/core/bus_tests.rs b/crates/openhuman-core/src/core/bus_tests.rs
index 7ab420eb0a..57a7b15645 100644
--- a/crates/openhuman-core/src/core/bus_tests.rs
+++ b/crates/openhuman-core/src/core/bus_tests.rs
@@ -27,8 +27,9 @@ fn removing_cron_delivery_moves_past_the_canonical_v2_event_catalog() {
// The canonical 2.0 catalog already retired the desktop voice event, and
// 2.1 added inbound-event queues. Removing CronDeliveryRequested from
// that wire contract requires a new major version beyond both.
+ let major = std::hint::black_box(EVENTS_VERSION.major);
assert!(
- EVENTS_VERSION.major > 2,
+ major > 2,
"removing CronDeliveryRequested is incompatible with the canonical 2.x catalog; got {EVENTS_VERSION}"
);
}