Skip to content

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

test(core): convert domain subscriber test to async and use new bus init

Steven Enamakel5cd937c0b59b
diff --git a/src/core/jsonrpc_tests.rs b/src/core/jsonrpc_tests.rs
index c8c16b7ccc..bca1fd5452 100644
--- a/src/core/jsonrpc_tests.rs
+++ b/src/core/jsonrpc_tests.rs
@@ -178,11 +178,11 @@ fn learning_subscriber_registration_is_idempotent_after_success() {
assert!(!learning_first_time_when_bus_ready(&completed, true));
}
-#[test]
-fn domain_subscriber_registration_wrapper_uses_the_global_bus() {
+#[tokio::test]
+async fn domain_subscriber_registration_wrapper_uses_the_global_bus() {
use crate::core::all::DomainGroup;
- crate::core::event_bus::init_global(crate::core::event_bus::DEFAULT_CAPACITY);
+ crate::core::bus::init().await.unwrap();
assert!(group_first_time(DomainGroup::Media));
assert!(!group_first_time(DomainGroup::Media));
}