From 03a46f3e28e4888556b0de0930f6a0c7f8afe6cd Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 2 Sep 2021 01:37:39 +0100 Subject: [PATCH] increase allowance for slow thread de-spawns --- actix-rt/tests/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-rt/tests/tests.rs b/actix-rt/tests/tests.rs index a49a033b..5fe1e894 100644 --- a/actix-rt/tests/tests.rs +++ b/actix-rt/tests/tests.rs @@ -217,8 +217,8 @@ fn system_stop_stops_arbiters() { System::current().stop(); sys.run().unwrap(); - // account for slightly slow thread de-spawns (only observed on windows) - thread::sleep(Duration::from_millis(100)); + // account for slightly slow thread de-spawns + thread::sleep(Duration::from_millis(500)); // arbiter should be dead and return false assert!(!Arbiter::current().spawn_fn(|| {}));