diff --git a/test/integration/thruster.cc b/test/integration/thruster.cc index 7a071b54685..abe0a1b131f 100644 --- a/test/integration/thruster.cc +++ b/test/integration/thruster.cc @@ -211,7 +211,7 @@ void ThrusterTest::TestWorld(const std::string &_world, // Check no movement because of invalid commands fixture.Server()->Run(true, 100, false); - ASSERT_FALSE(modelPoses.Pos().X().empty()) + ASSERT_FALSE(modelPoses.empty()); EXPECT_DOUBLE_EQ(0.0, modelPoses.back().Pos().X()); EXPECT_EQ(100u, modelPoses.size()); EXPECT_EQ(100u, propellerAngVels.size()); @@ -244,10 +244,9 @@ void ThrusterTest::TestWorld(const std::string &_world, // Check movement if (_namespace != "lowbattery") - { - ASSERT_FALSE(modelPoses.Pos().X().empty()) - for (sleep = 0; (modelPoses.empty() || modelPoses.back().Pos().X() < 5.0) && sleep < maxSleep; - ++sleep) + { + for (sleep = 0; (modelPoses.empty() || modelPoses.back().Pos().X() < 5.0) && + sleep < maxSleep; ++sleep) { std::this_thread::sleep_for(std::chrono::milliseconds(100)); fixture.Server()->Run(true, 100, false);