events: Increased test tolerance to +-5ms

pull/3837/head
Christopher Haster 2017-02-16 11:43:27 -06:00 committed by Anna Bridge
parent 1b0fad4bd0
commit 243d47f9fc
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ SIMPLE_POSTS_TEST(0)
void time_func(Timer *t, int ms) {
TEST_ASSERT_INT_WITHIN(2, ms, t->read_ms());
TEST_ASSERT_INT_WITHIN(5, ms, t->read_ms());
t->reset();
}

View File

@ -93,7 +93,7 @@ void semaphore_timing_test() {
int taken = timer.read_us() - start;
printf("delay %dms => error %dus\r\n", delay, abs(1000*delay - taken));
TEST_ASSERT_INT_WITHIN(2000, taken, delay * 1000);
TEST_ASSERT_INT_WITHIN(5000, taken, delay * 1000);
led = !led;
}