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:
parent
f7ca7350b5
commit
723b638476
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue