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!() } }