Skip to content

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

test: drop paused tokio clock from async tests

Steven Enamakel31d02989eea8
diff --git a/crates/openhuman-core/src/agent/context_breakdown_tests.rs b/crates/openhuman-core/src/agent/context_breakdown_tests.rs
index a6e6420035..bd56098035 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(start_paused = true)]
+#[tokio::test]
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 to
diff --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.rs
index e9c8b17f53..46b16241cd 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(start_paused = true)]
+#[tokio::test]
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 user
diff --git a/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs b/crates/openhuman-core/src/memory/lifecycle/hooks_tests.rs
index d70d0678fe..4e40311d05 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(start_paused = true)]
+#[tokio::test]
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(start_paused = true)]
+#[tokio::test]
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.rs
index 09cdb29a8d..70f40202aa 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(start_paused = true)]
+#[tokio::test]
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.rs
index 4c90306c23..9daf6e718c 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(start_paused = true)]
+#[tokio::test]
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(),