Skip to content

Commit

Permalink
Add sleep in setup of flaky PSM test fixture (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass authored Nov 22, 2024
1 parent 172c128 commit 92e8808
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class PlanningSceneMonitorTest : public ::testing::Test
scene_ = planning_scene_monitor_->getPlanningScene();
executor_->add_node(test_node_);
executor_thread_ = std::thread([this]() { executor_->spin(); });

// Needed to avoid race conditions on high-load CPUs.
std::this_thread::sleep_for(std::chrono::seconds{ 1 });
}

void TearDown() override
Expand Down

0 comments on commit 92e8808

Please sign in to comment.