From c5653987bd807381b75d4f709dc10f260b7912a1 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 19 Jul 2022 01:53:32 -0700 Subject: [PATCH] Fix compilation of scene broadcaster test (#1599) This test fails to compile with the latest version of protobuf, which is currently available on macOS. Signed-off-by: Steve Peters --- test/integration/scene_broadcaster_system.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;