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
test: enable paused tokio time in async tests
Steven Enamakel26df5681ef01
diff --git a/crates/openhuman-core/src/agent/agent_turn_loop_tests.rs b/crates/openhuman-core/src/agent/agent_turn_loop_tests.rsindex 80c928ddaa..7c5ab5d067 100644--- a/crates/openhuman-core/src/agent/agent_turn_loop_tests.rs+++ b/crates/openhuman-core/src/agent/agent_turn_loop_tests.rs@@ -194,7 +194,7 @@ async fn turn_handles_unknown_tool_gracefully() {// 6. Tool execution failure recovery// ═══════════════════════════════════════════════════════════════════════════-#[tokio::test]+#[tokio::test(start_paused = true)]async fn turn_recovers_from_tool_failure_and_tool_error() {let cases: [(&str, Box<dyn Tool>); 2] = [("fail", Box::new(FailingTool)),diff --git a/crates/openhuman-core/src/agent/context_breakdown_tests.rs b/crates/openhuman-core/src/agent/context_breakdown_tests.rsindex bd56098035..a6e6420035 100644--- a/crates/openhuman-core/src/agent/context_breakdown_tests.rs+++ b/crates/openhuman-core/src/agent/context_breakdown_tests.rs@@ -84,7 +84,7 @@ fn config_fingerprint_is_stable_for_identical_config() {assert_eq!(config_fingerprint(&a), config_fingerprint(&b));}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn history_section_is_none_for_an_unknown_thread() {// No transcripts exist for this id, so `token_usage` should report// `has_usage: false` (or the RPC itself fails) and this must degrade todiff --git a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rsindex 46b16241cd..e9c8b17f53 100644--- a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs@@ -123,7 +123,7 @@ async fn list_tools_in_direct_mode_returns_empty_without_hitting_backend() {);}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn execute_tool_per_call_factory_means_no_baked_client() {// Regression check for the structural fix: `ComposioExecuteTool::new`// takes `Arc<Config>` rather than `ComposioClient`, so a userdiff --git a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rsindex 4e40311d05..d70d0678fe 100644--- a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs@@ -394,7 +394,7 @@ fn repeated_lines(markdown: &str) -> Vec<String> {.collect()}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn a_turn_pack_stays_within_its_budget_against_a_large_store() {let tmp = tempfile::tempdir().unwrap();let config = config_in(&tmp);@@ -433,7 +433,7 @@ async fn a_turn_pack_stays_within_its_budget_against_a_large_store() {assert!(repeated_lines(&pack.markdown).is_empty());}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn a_resumed_session_pack_stays_within_one_budget_and_repeats_nothing() {let tmp = tempfile::tempdir().unwrap();let config = config_in(&tmp);diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rsindex 70f40202aa..09cdb29a8d 100644--- a/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs+++ b/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs@@ -240,7 +240,7 @@ async fn spawn_mock_server_that_goes_silent(/// goes silent without closing is ended by the client's own ping deadline,/// the loop reports the loss and reconnects on the next attempt, and the/// deadline warning plus the `Reconnected after …` line execute on the way.-#[tokio::test]+#[tokio::test(start_paused = true)]async fn ws_loop_reconnects_after_ping_deadline_on_a_silent_server() {let (fwd_tx, mut fwd_rx) = mpsc::unbounded_channel::<String>();let (release_tx, release_rx) = tokio::sync::oneshot::channel::<()>();diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs b/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rsindex 79e1f45555..4c90306c23 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs@@ -224,7 +224,7 @@ async fn task_without_allowed_websites_is_refused_before_the_module() {}}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn a_second_turn_reuses_the_thread_session_and_close_removes_it() {let client = Arc::new(BrowserClient::new(Arc::new(crate::config::Config::default(),@@ -301,7 +301,7 @@ async fn stale_tool_close_preserves_a_newer_thread_session() {thread_sessions().lock().await.remove(&key);}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn changed_browser_policy_retires_cached_session_for_same_thread() {let mut old_config = crate::config::Config::default();old_config.http_request.allowed_domains = vec!["example.com".into(), "other.test".into()];diff --git a/crates/openhuman-core/src/web_chat/web_tests_queue_acceptance_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_queue_acceptance_tests.rsindex b4a36af797..4861c13b16 100644--- a/crates/openhuman-core/src/web_chat/web_tests_queue_acceptance_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests_queue_acceptance_tests.rs@@ -170,7 +170,7 @@ async fn terminal_turn_dispatches_followup_as_a_fresh_host_turn() {cancel_parked_turn(thread_id, &block).await;}-#[tokio::test]+#[tokio::test(start_paused = true)]async fn cancellation_discards_pending_lanes_before_a_replacement_turn() {let _serial = FORCED_ERROR_TEST_LOCK.lock().await;let cancelled_block = make_block();