Skip to content

Commit 92e8808

Browse files
authored
Add sleep in setup of flaky PSM test fixture (#3126)
1 parent 172c128 commit 92e8808

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

moveit_ros/planning/planning_scene_monitor/test/planning_scene_monitor_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ class PlanningSceneMonitorTest : public ::testing::Test
5959
scene_ = planning_scene_monitor_->getPlanningScene();
6060
executor_->add_node(test_node_);
6161
executor_thread_ = std::thread([this]() { executor_->spin(); });
62+
63+
// Needed to avoid race conditions on high-load CPUs.
64+
std::this_thread::sleep_for(std::chrono::seconds{ 1 });
6265
}
6366

6467
void TearDown() override

0 commit comments

Comments
 (0)