Skip to content

Commit

Permalink
Added assert false function
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravKumar9920 committed Mar 2, 2024
1 parent 91018c4 commit 4dcb138
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/integration/thruster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,17 +331,11 @@ void ThrusterTest::TestWorld(const std::string &_world,
EXPECT_NEAR(0.0, angVel.Y(), _baseTol);
EXPECT_NEAR(0.0, angVel.Z(), _baseTol);
}
if(!modelPoses.empty())
{
auto latest_pose = modelPoses.back();
modelPoses.clear();
propellerAngVels.clear();
propellerLinVels.clear();
}
else
{
throw std::runtime_error("modelPoses is empty");
}
ASSERT_FALSE(modelPoses.empty())
auto latest_pose = modelPoses.back();
modelPoses.clear();
propellerAngVels.clear();
propellerLinVels.clear();
// Make sure that when the deadband is disabled
// commands below the deadband should create a movement
msgs::Boolean db_msg;
Expand Down

0 comments on commit 4dcb138

Please sign in to comment.