Commit 18dfcbc2 authored by Pavel Vasilyev's avatar Pavel Vasilyev Committed by Fabio Baltieri
Browse files

testes: bsim: bluetooth: mesh: Increase boundary for proxy adv int test



Time between the start of 2 consequtive advertising events consists
of advertising interval and delay. If delay is zero and the measured
interval is the interval between the last or prelast packet and the
first packet of the next adv event, the measured time can be less than
adv interval.

Signed-off-by: default avatarPavel Vasilyev <pavel.vasilyev@nordicsemi.no>
parent ad0ea14b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -107,9 +107,10 @@ static bool check_delta_time(uint8_t transmit, uint64_t interval)
	if (cnt) {
		int64_t delta = k_uptime_delta(&timestamp);

		LOG_INF("rx: cnt(%d) delta(%dms)", cnt, delta);
		LOG_INF("rx: cnt(%d) delta(%dms) interval(%ums)",
			cnt, (int32_t)delta, (uint32_t)interval);

		ASSERT_TRUE(delta >= interval &&
		ASSERT_TRUE(delta >= (interval - 5) &&
			    delta < (interval + 15));
	} else {
		timestamp = k_uptime_get();