Skip to content

Commit aa2e194

Browse files
committed
Increase timeouts in tests compatible with real hardware
As real hardware boots up a lot slower than URSim, that needs higher timeouts.
1 parent 3b346d1 commit aa2e194

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_primary_client.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ TEST_F(PrimaryClientTest, test_power_cycle_commands)
8484
{
8585
EXPECT_NO_THROW(client_->start());
8686
EXPECT_TRUE(client_->commandPowerOff());
87-
EXPECT_TRUE(client_->commandPowerOn());
88-
EXPECT_TRUE(client_->commandBrakeRelease());
87+
EXPECT_TRUE(client_->commandPowerOn(true, std::chrono::milliseconds(10000)));
88+
EXPECT_TRUE(client_->commandBrakeRelease(true, std::chrono::milliseconds(10000)));
8989
EXPECT_TRUE(client_->commandPowerOff());
90-
EXPECT_TRUE(client_->commandBrakeRelease());
90+
EXPECT_TRUE(client_->commandBrakeRelease(true, std::chrono::milliseconds(20000)));
9191
EXPECT_TRUE(client_->commandPowerOff());
9292

9393
// provoke a timeout
9494
EXPECT_FALSE(client_->commandBrakeRelease(true, std::chrono::milliseconds(1)));
9595

96-
auto timeout = std::chrono::milliseconds(1000);
96+
auto timeout = std::chrono::milliseconds(20000);
9797
waitFor([this]() { return client_->getRobotMode() == RobotMode::RUNNING; }, timeout);
9898
EXPECT_EQ(client_->getRobotMode(), RobotMode::RUNNING);
9999

0 commit comments

Comments
 (0)