Skip to content

Commit

Permalink
tests: bsim: Bluetooth: Mesh: Adjust timeout for Adv Extensions use
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit d1e4c17)
  • Loading branch information
cvinayak authored and github-actions[bot] committed Jan 24, 2024
1 parent 85a67d5 commit f3ddcca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/bsim/bluetooth/mesh/src/test_beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions tests/bsim/bluetooth/mesh/src/test_provision.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit f3ddcca

Please sign in to comment.