Skip to content
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

Increased time in test_multithreaded #543

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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