Skip to content

Commit

Permalink
remove unnecessary sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
ejalaa12 committed Jul 31, 2023
1 parent 1d9c1a9 commit 01b9346
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/integration/thruster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ void ThrusterTest::TestWorld(const std::string &_world,

// Check no movement because of invalid commands
fixture.Server()->Run(true, 100, false);
std::this_thread::sleep_for(std::chrono::milliseconds(100));
EXPECT_DOUBLE_EQ(0.0, modelPoses.back().Pos().X());
EXPECT_EQ(100u, modelPoses.size());
EXPECT_EQ(100u, propellerAngVels.size());
Expand Down Expand Up @@ -248,7 +247,6 @@ void ThrusterTest::TestWorld(const std::string &_world,
for (sleep = 0; modelPoses.back().Pos().X() < 5.0 && sleep < maxSleep;
++sleep)
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
fixture.Server()->Run(true, 100, false);
}
EXPECT_LT(sleep, maxSleep);
Expand Down Expand Up @@ -351,7 +349,6 @@ void ThrusterTest::TestWorld(const std::string &_world,
// When the deadband is disabled, any command value
// (especially values below the deadband threshold) should move the model
fixture.Server()->Run(true, 1000, false);
std::this_thread::sleep_for(std::chrono::milliseconds(100));

// make sure we have run a 1000 times
EXPECT_EQ(1000u, modelPoses.size());
Expand Down

0 comments on commit 01b9346

Please sign in to comment.