Skip to content

Commit 6e920fd

Browse files
committed
events: Increased test tolerance to +-5ms
1 parent 0949164 commit 6e920fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TESTS/events/queue/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SIMPLE_POSTS_TEST(0)
7070

7171

7272
void time_func(Timer *t, int ms) {
73-
TEST_ASSERT_INT_WITHIN(2, ms, t->read_ms());
73+
TEST_ASSERT_INT_WITHIN(5, ms, t->read_ms());
7474
t->reset();
7575
}
7676

TESTS/events/timing/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void semaphore_timing_test() {
9393
int taken = timer.read_us() - start;
9494

9595
printf("delay %dms => error %dus\r\n", delay, abs(1000*delay - taken));
96-
TEST_ASSERT_INT_WITHIN(2000, taken, delay * 1000);
96+
TEST_ASSERT_INT_WITHIN(5000, taken, delay * 1000);
9797

9898
led = !led;
9999
}

0 commit comments

Comments
 (0)