diff --git a/test/integration/marker_manager.cc b/test/integration/marker_manager.cc index 72dffa707..2f1c1c79b 100644 --- a/test/integration/marker_manager.cc +++ b/test/integration/marker_manager.cc @@ -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)); @@ -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