Skip to content

Commit d1da071

Browse files
PavelVPVaescolar
authored andcommitted
tests: bsim: bluetooth: mesh: Add short delay before suspending stack
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]>
1 parent febff79 commit d1da071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/bsim/bluetooth/mesh/src/test_provision.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ static int mock_pdu_send(const struct bt_mesh_model *model, struct bt_mesh_msg_c
151151
struct net_buf_simple *buf)
152152
{
153153
/* Device becomes unresponsive and doesn't communicate with other nodes anymore */
154+
k_sleep(K_MSEC(10));
154155
bt_mesh_suspend();
155156

156157
k_sem_give(&pdu_send_sem);

0 commit comments

Comments
 (0)