We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dbd37e commit 70cf856Copy full SHA for 70cf856
rclrs/src/executor.rs
@@ -500,7 +500,9 @@ mod tests {
500
let _node = executor.create_node(&format!("test_timeout_{}", line!())).unwrap();
501
502
for _ in 0..10 {
503
- executor.spin(SpinOptions::default().timeout(Duration::from_millis(1)));
+ let r = executor.spin(SpinOptions::default().timeout(Duration::from_millis(1)));
504
+ assert_eq!(r.len(), 1);
505
+ assert!(matches!(r[0], RclrsError::RclError { code: RclReturnCode::Timeout, .. }));
506
}
507
508
0 commit comments