From 9440870a9628a15dbea607720139294a780d1beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Fri, 20 Sep 2024 18:37:55 +0300 Subject: [PATCH] Removed hopeless, flaky part of the test. --- src/lib.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index efe0eb7..3ecc720 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -804,15 +804,5 @@ mod tests { assert_eq!(a.load(Ordering::Relaxed), NUM_THREADS); assert_eq!(b.load(Ordering::Relaxed), NUM_THREADS); - - for _ in 0..128 { - if threat_pool.context.lock.lock().unwrap().heartbeats.len() > 4 { - thread::yield_now(); - } else { - return; - } - } - - unreachable!() } }