-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect boundary check for playback_duration
and play_until_timestamp
#1032
Fix incorrect boundary check for playback_duration
and play_until_timestamp
#1032
Conversation
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
- Properly handle cases when playback_duration = 0 or play_until_timestamp_ = 0. - Rewrite `play_for_none_are_played_due_to_duration` test to use `on_playback` callbacks to decrease runtime from 10 seconds down to 100 milliseconds. Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
cc: @agalbachicar |
Using on_play_callbacks instead of expectation for 0 messages on subscription. Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Change wrong expectations for number of messages to arrive. It was expecting to arrive 1 but actually should expect 2. Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichaelOrlov thanks for sending this bug and fixing the bug we introduced. I left two suggestions for your consideration which try to improve readability only.
Thanks again!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a style guide comment that I'm not 100% sure about.
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Gist: https://gist.githubusercontent.com/MichaelOrlov/e28428938082cd90d5c8013362a8053a/raw/9900e5b8703accdc299db1280f09f1cbca688e74/ros2.repos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing any huge issues here.
playback_duration
andplay_until_timestamp
#1031Update: Also fixed one false positive and one flaky test in
test_play_until