Skip to content

Commit 1a60bcb

Browse files
wait: fix timer test
1 parent 394c007 commit 1a60bcb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rclrs/src/wait.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,9 @@ mod tests {
504504
let mut wait_set = WaitSet::new(0, 0, 1, 0, 0, 0, &context)?;
505505
wait_set.add_timer(timer.clone())?;
506506

507-
let readies = wait_set.wait(Some(std::time::Duration::from_micros(0)))?;
508-
assert!(!readies.timers.contains(&timer));
507+
let readies = wait_set.wait(Some(std::time::Duration::from_micros(0)));
508+
// Timeout
509+
assert!(readies.is_err());
509510

510511
Ok(())
511512
}

0 commit comments

Comments
 (0)