File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments