Fire fake timers waking up at the same time as the current clock

This commit is contained in:
Antonio Scandurra 2022-03-28 10:57:17 +02:00
parent cbd266052d
commit 26aa138429

View File

@ -337,7 +337,7 @@ impl Deterministic {
if let Some((_, wakeup_time, _)) = state.pending_timers.first() {
let wakeup_time = *wakeup_time;
if wakeup_time < new_now {
if wakeup_time <= new_now {
let timer_count = state
.pending_timers
.iter()