Try to make test timing a little more accurate

pull/15339/head
Jamie Smith 2022-06-16 10:29:11 -07:00 committed by Jay Sridharan
parent d6556c84fc
commit 69d1fd9487
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ void test_get_empty_timeout()
uint32_t *v;
bool stat = q.try_get_for(50ms, &v);
timer.stop();
TEST_ASSERT_FALSE(stat);
TEST_ASSERT_DURATION_WITHIN(5ms, 50ms, timer.elapsed_time());
}