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 <maureen.helm@analog.com>
This commit is contained in:
parent
5106a0407e
commit
130c5c0002
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ ZTEST(publish_stats, test_channel_metadata)
|
|||
zassert_equal(0, zbus_chan_pub_stats_avg_period(&chan));
|
||||
|
||||
/* Should be no different after a second of runtime */
|
||||
k_sleep(K_SECONDS(1));
|
||||
k_sleep(K_TIMEOUT_ABS_MS(1000));
|
||||
zassert_equal(0, zbus_chan_pub_stats_count(&chan));
|
||||
zassert_equal(0, zbus_chan_pub_stats_last_time(&chan));
|
||||
zassert_equal(0, zbus_chan_pub_stats_avg_period(&chan));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue