forked from ros2/rclcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect boundary check for
playback_duration
and `play_until_…
…timestamp` (ros2#1032) * Add initialization for `metadata starting time` in MockSequentialReader Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Fix incorrect boundary check for `playback_duration` and `play_until` - 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> * Rewrite false positive `play_until_none_are_played_due_to_timestamp` Using on_play_callbacks instead of expectation for 0 messages on subscription. Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Address flakiness in `playback_duration_overrides_play_until` test 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> * Address code style issue in if-else statement Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
- Loading branch information
1 parent
3a6a68a
commit 832dea8
Showing
6 changed files
with
79 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters