increase allowance for slow thread de-spawns

This commit is contained in:
Rob Ede 2021-09-02 01:37:39 +01:00
parent fb6e7f0eec
commit 03a46f3e28
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,8 @@ fn system_stop_stops_arbiters() {
System::current().stop(); System::current().stop();
sys.run().unwrap(); sys.run().unwrap();
// account for slightly slow thread de-spawns (only observed on windows) // account for slightly slow thread de-spawns
thread::sleep(Duration::from_millis(100)); thread::sleep(Duration::from_millis(500));
// arbiter should be dead and return false // arbiter should be dead and return false
assert!(!Arbiter::current().spawn_fn(|| {})); assert!(!Arbiter::current().spawn_fn(|| {}));