Skip to content

Commit 4a1f438

Browse files
committed
[nrf fromtree] tests: drivers: counter: basic_api: Tweak test timing
For slow processors it is possible that setting 1 ms alarm and then canceling it could lead to alarm expiring before it is canceled and that was not expected in the test. Increasing timeout to 1.5ms. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 331442f)
1 parent 01d468e commit 4a1f438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/drivers/counter/counter_basic_api/src/test_counter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static void test_cancelled_alarm_does_not_expire_instance(const struct device *d
887887
{
888888
int err;
889889
uint32_t cnt;
890-
uint32_t us = 1000;
890+
uint32_t us = 1500;
891891
uint32_t ticks = counter_us_to_ticks(dev, us);
892892
uint32_t top = counter_get_top_value(dev);
893893

0 commit comments

Comments
 (0)