Skip to content

Commit 3968bbd

Browse files
committed
sim-rs: potentially fix assertion
1 parent 4586bcc commit 3968bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sim-rs/sim-core/src/clock/coordinator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl ClockCoordinator {
5959
while let Some(event) = self.rx.recv().await {
6060
match event {
6161
ClockEvent::Wait { actor, until, done } => {
62-
assert!(until.is_none_or(|t| t > self.time.load(Ordering::Acquire)));
62+
assert!(until.is_none_or(|t| t >= self.time.load(Ordering::Acquire)));
6363
if waiters[actor].replace(Waiter { until, done }).is_some() {
6464
panic!("An actor has somehow managed to wait twice");
6565
}

0 commit comments

Comments
 (0)