Skip to content

fix(ros2): reject non-positive waiters time_interval - #855

Closed
Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:aerial/waiters-time-interval-positive
Closed

Bartok9 wants to merge 1 commit into
RobotecAI:mainfrom
Bartok9:aerial/waiters-time-interval-positive

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Poll interval must be > 0. Timeout may still be 0 for wait-forever.

pytest tests/communication/ros2/test_waiters.py

Claim: bartok
Operator: bartok
Campaign: aerial-drone

Prevent busy-spin when time_interval is 0 and reject negative poll gaps.
@Bartok9
Bartok9 force-pushed the aerial/waiters-time-interval-positive branch from 4966aa5 to aff2f6d Compare August 12, 2026 17:25
@maciejmajek

Copy link
Copy Markdown
Member

Going to pass on this one. Our own waiter tests call wait_for_ros2_topics with time_interval=0 and time.sleep patched out, which is a reasonable way to run them, so the guard would break them.

@maciejmajek maciejmajek closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants