Skip to content

Commit

Permalink
another attemp
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Jul 16, 2021
1 parent 612eb49 commit ba99d4f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions test/integration/marker_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ TEST_F(MarkerManagerTestFixture,
markerMsg.mutable_material()->mutable_diffuse()->set_g(0);
markerMsg.mutable_material()->mutable_diffuse()->set_b(1);
markerMsg.mutable_material()->mutable_diffuse()->set_a(1);
markerMsg.mutable_lifetime()->set_sec(10);
markerMsg.mutable_lifetime()->set_sec(0);
markerMsg.mutable_lifetime()->set_nsec(0);
ignition::msgs::Set(markerMsg.mutable_scale(),
ignition::math::Vector3d(1.0, 1.0, 1.0));
Expand All @@ -188,11 +188,17 @@ TEST_F(MarkerManagerTestFixture,
igndbg << "/marker request sent" << std::endl;
waitAndSendStatsMsgs(timePoint, 1, 200);
EXPECT_EQ(1u, scene->VisualCount());
}
else
{
FAIL();
}

timePoint += 10s;
sendWorldStatisticsMsg(timePoint);

waitAndSendStatsMsgs(timePoint, 0, 400);
markerMsg.set_action(ignition::msgs::Marker::DELETE_ALL);
executed = node.Request("/marker", markerMsg);
if (executed)
{
waitAndSendStatsMsgs(timePoint, 0, 200);
EXPECT_EQ(0u, scene->VisualCount());
}
else
Expand Down

0 comments on commit ba99d4f

Please sign in to comment.