Skip to content

Commit

Permalink
Fix compilation of scene broadcaster test (#1599)
Browse files Browse the repository at this point in the history
This test fails to compile with the latest version
of protobuf, which is currently available on macOS.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Jul 19, 2022
1 parent 6d3eac2 commit c565398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/scene_broadcaster_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c565398

Please sign in to comment.