Skip to content

Commit

Permalink
raise strict rate tolerance to 0.06
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <mabel@openrobotics.org>
  • Loading branch information
mabelzhang committed Jun 10, 2020
1 parent f43b100 commit c134381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/camera_sensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ TEST_F(CameraSensor, CheckThrottleStrictRate)
double dt = world->SimTime().Double() - simT0;
double rate = static_cast<double>(total_images) / dt;
gzdbg << "timer [" << dt << "] seconds rate [" << rate << "] fps\n";
const double tolerance = 0.02;
const double tolerance = 0.06;
EXPECT_GT(rate, updateRate * (1 - tolerance));
EXPECT_LT(rate, updateRate * (1 + tolerance));
c.reset();
Expand Down

0 comments on commit c134381

Please sign in to comment.