Skip to content

Commit

Permalink
Relax pose check in actor no mesh test (#2196)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Nov 2, 2023
1 parent f818301 commit 97450b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/integration/actor_trajectory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,12 @@ TEST_F(ActorFixture, IGN_UTILS_TEST_DISABLED_ON_MAC(ActorTrajectoryNoMesh))
std::lock_guard<std::mutex> lock(g_mutex);
auto it = g_modelPoses.find(boxName);
auto &poses = it->second;
for (unsigned int i = 0; i < poses.size()-1; ++i)
for (unsigned int i = 0; i < poses.size()-2; i+=2)
{
EXPECT_NE(poses[i], poses[i+1]);
// There could be times when the rendering thread has not updated
// between PostUpdates so two consecutive poses may still be the same.
// So check for diff between every other pose
EXPECT_NE(poses[i], poses[i+2]);
}
}

Expand Down

0 comments on commit 97450b6

Please sign in to comment.