The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed src/core/jsonrpc_tests.rs
Steven Enamakele93ed6feede5
diff --git a/src/core/jsonrpc_tests.rs b/src/core/jsonrpc_tests.rsindex 7c39e99830..cf54fb702a 100644--- a/src/core/jsonrpc_tests.rs+++ b/src/core/jsonrpc_tests.rs@@ -7,10 +7,9 @@ use std::time::Duration;use tokio_util::sync::CancellationToken;use super::{- default_state, group_first_time, group_first_time_when_bus_ready, invoke_method,- is_session_expired_error, is_unconfirmed_unauthorized_error,- learning_first_time_when_bus_ready, params_to_object, parse_json_params, type_name,- DomainSubscriberPlan,+ default_state, group_first_time_when_bus_ready, invoke_method, is_session_expired_error,+ is_unconfirmed_unauthorized_error, learning_first_time_when_bus_ready, params_to_object,+ parse_json_params, type_name, DomainSubscriberPlan,};// These are the `http-server`-gated RPC-surface symbols (#5048); the tests that// name them below carry the same `#[cfg]` so the disabled-build test compile@@ -178,16 +177,23 @@ fn learning_subscriber_registration_is_idempotent_after_success() {assert!(!learning_first_time_when_bus_ready(&completed, true));}-#[tokio::test]-async fn domain_subscriber_registration_wrapper_uses_the_global_bus() {+#[test]+fn domain_subscriber_registration_readiness_helper_is_idempotent() {use crate::core::all::DomainGroup;- use crate::core::bus::BUS;+ use std::collections::HashSet;+ use std::sync::Mutex;- BUS.init_in_process(crate::core::bus::config())- .await- .expect("bus initialised for test");- assert!(group_first_time(DomainGroup::Media));- assert!(!group_first_time(DomainGroup::Media));+ let completed = Mutex::new(HashSet::new());+ assert!(group_first_time_when_bus_ready(+ &completed,+ DomainGroup::Media,+ true,+ ));+ assert!(!group_first_time_when_bus_ready(+ &completed,+ DomainGroup::Media,+ true,+ ));}/// #5027 — the tool-execution timeout must be seeded on the always-on core boot