Commit 130c5c00 authored by Maureen Helm's avatar Maureen Helm Committed by Dan Kalowsky
Browse files

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: default avatarMaureen Helm <maureen.helm@analog.com>
parent 5106a040
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));