Skip to content

Commit 130c5c0

Browse files
MaureenHelmdkalowsk
authored andcommitted
tests: zbus: publish_stats: Fix for non-zero boot delay
Fixes the zbus publishing statistics test to account for a non-zero boot delay, which is often used in hardware testing environments. This fixes an assertion failure observed on multiple max32 boards in the adi board farm. Signed-off-by: Maureen Helm <[email protected]>
1 parent 5106a04 commit 130c5c0

File tree

1 file changed

+1
-1
lines changed
  • tests/subsys/zbus/publish_stats/src

1 file changed

+1
-1
lines changed

tests/subsys/zbus/publish_stats/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ZTEST(publish_stats, test_channel_metadata)
2525
zassert_equal(0, zbus_chan_pub_stats_avg_period(&chan));
2626

2727
/* Should be no different after a second of runtime */
28-
k_sleep(K_SECONDS(1));
28+
k_sleep(K_TIMEOUT_ABS_MS(1000));
2929
zassert_equal(0, zbus_chan_pub_stats_count(&chan));
3030
zassert_equal(0, zbus_chan_pub_stats_last_time(&chan));
3131
zassert_equal(0, zbus_chan_pub_stats_avg_period(&chan));

0 commit comments

Comments
 (0)