From f3ddcca8114e6030d071d329d24b08ae1b75fb76 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Mon, 22 Jan 2024 11:55:49 +0100 Subject: [PATCH] tests: bsim: Bluetooth: Mesh: Adjust timeout for Adv Extensions use Adjust mesh test timing and timeout value for Advertising Extensions use/fix in Zephyr Controller. The scanning in Zephyr Controller is delayed when using extended scanning. Signed-off-by: Vinayak Kariappa Chettimada (cherry picked from commit d1e4c17e6dd43a623ba9396f1e427fb7959b3a44) --- tests/bsim/bluetooth/mesh/src/test_beacon.c | 2 +- tests/bsim/bluetooth/mesh/src/test_provision.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bsim/bluetooth/mesh/src/test_beacon.c b/tests/bsim/bluetooth/mesh/src/test_beacon.c index fd2477f3907387..38432b154bd416 100644 --- a/tests/bsim/bluetooth/mesh/src/test_beacon.c +++ b/tests/bsim/bluetooth/mesh/src/test_beacon.c @@ -1331,7 +1331,7 @@ static void test_tx_priv_interleave(void) ASSERT_TRUE(status == STATUS_SUCCESS); ASSERT_TRUE(phase == BT_MESH_KR_PHASE_2); - k_sleep(K_SECONDS(BEACON_INTERVAL + 5)); + k_sleep(K_SECONDS(BEACON_INTERVAL + 7)); toggle_priv_beacon(tx_cfg.addr, 1); PASS(); diff --git a/tests/bsim/bluetooth/mesh/src/test_provision.c b/tests/bsim/bluetooth/mesh/src/test_provision.c index 5425874652425e..454792aba4d165 100644 --- a/tests/bsim/bluetooth/mesh/src/test_provision.c +++ b/tests/bsim/bluetooth/mesh/src/test_provision.c @@ -1008,11 +1008,11 @@ static void test_provisioner_pb_remote_client_parallel(void) /* scanning device with dev index 3 */ uuid[6] = '0' + 3; uuid_to_provision_remote = uuid; - ASSERT_OK(bt_mesh_rpr_scan_start(&rpr_cli, &srv, uuid, 5, 1, &scan_status)); + ASSERT_OK(bt_mesh_rpr_scan_start(&rpr_cli, &srv, uuid, 15, 1, &scan_status)); ASSERT_EQUAL(BT_MESH_RPR_SUCCESS, scan_status.status); ASSERT_EQUAL(BT_MESH_RPR_SCAN_SINGLE, scan_status.scan); ASSERT_EQUAL(1, scan_status.max_devs); - ASSERT_EQUAL(5, scan_status.timeout); + ASSERT_EQUAL(15, scan_status.timeout); ASSERT_OK(k_sem_take(&scan_sem, K_SECONDS(20))); ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(20)));