Skip to content

Commit

Permalink
tests: bsim: bluetooth: mesh: Add short delay before suspending stack
Browse files Browse the repository at this point in the history
The stack manages to suspend the advertiser before it finishes
transmitting the Outbound PDU Report message to confirm the transmission
of a Provisioning PDU. The test requires the server to become
unresponsive when the Provisioning PDU is sent to the unprovisioned
device to test timeout of the provisioning protocol.

Signed-off-by: Pavel Vasilyev <[email protected]>
  • Loading branch information
PavelVPV authored and aescolar committed Feb 26, 2024
1 parent febff79 commit d1da071
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/bsim/bluetooth/mesh/src/test_provision.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static int mock_pdu_send(const struct bt_mesh_model *model, struct bt_mesh_msg_c
struct net_buf_simple *buf)
{
/* Device becomes unresponsive and doesn't communicate with other nodes anymore */
k_sleep(K_MSEC(10));
bt_mesh_suspend();

k_sem_give(&pdu_send_sem);
Expand Down

0 comments on commit d1da071

Please sign in to comment.