tests: kernel: timer: timer_api: Fix test_timer_period_0

This test was not waiting long enough to ensure one-shot behavior.

Signed-off-by: Eric Johnson <eric@liveathos.com>
This commit is contained in:
Eric Johnson 2021-03-05 08:40:19 -06:00 committed by Anas Nashif
commit 723b638476

View file

@ -255,7 +255,8 @@ void test_timer_period_0(void)
- BUSY_SLEW_THRESHOLD_TICKS(DURATION
* USEC_PER_MSEC)),
K_NO_WAIT);
busy_wait_ms(DURATION + 1);
/* Need to wait at least 2 durations to ensure one-shot behavior. */
busy_wait_ms(2 * DURATION + 1);
/** TESTPOINT: ensure it is one-short timer */
TIMER_ASSERT((tdata.expire_cnt == 1)