diff --git a/test/integration/scene_broadcaster_system.cc b/test/integration/scene_broadcaster_system.cc index b3e55bfcd3..00e5717c2c 100644 --- a/test/integration/scene_broadcaster_system.cc +++ b/test/integration/scene_broadcaster_system.cc @@ -320,7 +320,8 @@ TEST_P(SceneBroadcasterTest, DeletedTopic) // The id of the deleted entity should have been published // Note: Only model entities are currently supported for deletion - EXPECT_TRUE(std::find_if(delMsg.data().cbegin(), delMsg.data().cend(), + EXPECT_NE(delMsg.data().cend(), + std::find_if(delMsg.data().cbegin(), delMsg.data().cend(), [&cylinderModelId](const auto &_val) { return _val == cylinderModelId;