Skip to content

Commit 8ba4d1b

Browse files
Increased wait before clearing PStop
1 parent 9751bdd commit 8ba4d1b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_ur_driver.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,18 +385,19 @@ TEST_F(UrDriverTest, read_error_code)
385385
std::stringstream cmd;
386386
cmd << "sec setup():" << std::endl << " protective_stop()" << std::endl << "end";
387387
EXPECT_TRUE(g_ur_driver_->sendScript(cmd.str()));
388-
388+
389389
auto error_codes = g_ur_driver_->getErrorCodes();
390-
while (error_codes.size() == 0) {
390+
while (error_codes.size() == 0)
391+
{
391392
error_codes = g_ur_driver_->getErrorCodes();
392393
}
393394

394395
ASSERT_EQ(error_codes.size(), 1);
395396
ASSERT_EQ(error_codes.at(0).message_code, 209);
396397
ASSERT_EQ(error_codes.at(0).message_argument, 0);
397398

398-
// Wait for PSTOP to show up on TP so we can clear it
399-
std::this_thread::sleep_for(std::chrono::milliseconds(200));
399+
// Wait for 5s after PSTOP before clearing it
400+
std::this_thread::sleep_for(std::chrono::seconds(5));
400401

401402
EXPECT_TRUE(g_dashboard_client_->commandCloseSafetyPopup());
402403
EXPECT_TRUE(g_dashboard_client_->commandUnlockProtectiveStop());

0 commit comments

Comments
 (0)