Skip to content

Commit

Permalink
Removed hopeless, flaky part of the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragostis committed Sep 20, 2024
1 parent 55d927e commit 9440870
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
}
}

0 comments on commit 9440870

Please sign in to comment.