mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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:
committed by
Peter Johnson
parent
0ebe32823a
commit
6858a57f72
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user