Make notifier command tests a lot more lenient (#2056)

They don't need to be testing timing, just that the command starts and stops.
This commit is contained in:
Thad House
2019-11-07 17:26:29 -08:00
committed by Peter Johnson
parent 0ebe32823a
commit 6858a57f72
2 changed files with 5 additions and 3 deletions

View File

@@ -26,5 +26,6 @@ TEST_F(NotifierCommandTest, NotifierCommandScheduleTest) {
std::this_thread::sleep_for(std::chrono::milliseconds(250));
scheduler.Cancel(&command);
EXPECT_NEAR(.01 * counter, .25, .025);
EXPECT_GT(counter, 10);
EXPECT_LT(counter, 100);
}