Skip to content

Commit

Permalink
Increased time in test_multithreaded (#543)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
  • Loading branch information
ahcorde authored Apr 4, 2024
1 parent b79c0ee commit c90f086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_rclcpp/test/test_multithreaded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ static inline void multi_access_publisher(bool intra_process)
};

// wait orders of magnitude longer than technically required to allow for system hiccups
auto time_to_wait = std::chrono::milliseconds(number_of_messages_per_timer * timer_period * 100);
auto time_between_checks = time_to_wait / 100;
auto time_to_wait = std::chrono::milliseconds(number_of_messages_per_timer * timer_period * 1000);
auto time_between_checks = time_to_wait / 1000;
auto start = std::chrono::steady_clock::now();
while (context->is_valid() && std::chrono::steady_clock::now() - start < time_to_wait) {
bool all_timers_canceled_bool = all_timers_canceled();
Expand Down

0 comments on commit c90f086

Please sign in to comment.