From 02eac133bd367f980bb3b5fcc04975b53499cfb3 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 8 Oct 2025 12:19:27 -0700 Subject: [PATCH] fix: force threads on arc test (fixes MacOS CI failure) --- tests/arc_tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/arc_tests.rs b/tests/arc_tests.rs index 4db0e39..8704a91 100644 --- a/tests/arc_tests.rs +++ b/tests/arc_tests.rs @@ -1091,7 +1091,7 @@ async fn test_arc_mixed_with_non_arc() { // ============================================================================ /// Test 16: Arc in parallel execution paths -#[tokio::test(flavor = "multi_thread")] +#[tokio::test(flavor = "multi_thread", worker_threads = 4)] #[cfg_attr(tarpaulin, ignore)] // Timing tests are unreliable with instrumentation overhead async fn test_arc_parallel_execution() { struct SharedProducer; @@ -1150,8 +1150,9 @@ async fn test_arc_parallel_execution() { let elapsed = start.elapsed(); // If running in parallel, should take ~50ms, not 150ms + // Allow some overhead for slower CI runners (especially macOS) assert!( - elapsed < Duration::from_millis(100), + elapsed < Duration::from_millis(140), "Tasks didn't run in parallel: {:?}", elapsed );