diff --git a/tokio/src/sync/tests/loom_semaphore_batch.rs b/tokio/src/sync/tests/loom_semaphore_batch.rs index a606327af..c073c8e63 100644 --- a/tokio/src/sync/tests/loom_semaphore_batch.rs +++ b/tokio/src/sync/tests/loom_semaphore_batch.rs @@ -74,6 +74,7 @@ fn cap_one() { Poll::Pending => { eprintln!("thread {th} dropping acquire while pending"); should_release = false; + cx.waker().wake_by_ref(); Poll::Pending } },