Skip to content

Commit

Permalink
publish for rosout topic multiple times to avoid flaky test (ros2#1054)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
  • Loading branch information
Chen Lihui authored and danthony06 committed Jun 14, 2023
1 parent 5c42cac commit aa66ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcl/test/rcl/test_logging_rosout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ check_if_rosout_subscription_gets_a_message(
});
size_t iteration = 0;
const char * message = "SOMETHING";
RCUTILS_LOG_INFO_NAMED(logger_name, message);
do {
RCUTILS_LOG_INFO_NAMED(logger_name, message);
++iteration;
ret = rcl_wait_set_clear(&wait_set);
ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
Expand Down

0 comments on commit aa66ca3

Please sign in to comment.