File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
tests/bsim/bluetooth/mesh/src Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -147,20 +147,14 @@ static const struct bt_mesh_comp rpr_cli_srv_comp = {
147147 .elem_count = 1 ,
148148};
149149
150- /* Delayed work to suspend device to allow publication to finish. */
151- static struct k_work_delayable suspend_work ;
152- static void delayed_suspend (struct k_work * work )
150+ static int mock_pdu_send (const struct bt_mesh_model * model , struct bt_mesh_msg_ctx * ctx ,
151+ struct net_buf_simple * buf )
153152{
154153 /* Device becomes unresponsive and doesn't communicate with other nodes anymore */
155154 bt_mesh_suspend ();
156155
157156 k_sem_give (& pdu_send_sem );
158- }
159157
160- static int mock_pdu_send (const struct bt_mesh_model * model , struct bt_mesh_msg_ctx * ctx ,
161- struct net_buf_simple * buf )
162- {
163- k_work_schedule (& suspend_work , K_MSEC (100 ));
164158 return 0 ;
165159}
166160
@@ -1272,7 +1266,6 @@ static void test_device_pb_remote_server_unproved(void)
12721266 */
12731267static void test_device_pb_remote_server_unproved_unresponsive (void )
12741268{
1275- k_work_init_delayable (& suspend_work , delayed_suspend );
12761269 device_pb_remote_server_setup_unproved (& rpr_srv_comp_unresponsive , NULL );
12771270
12781271 k_sem_init (& pdu_send_sem , 0 , 1 );
You can’t perform that action at this time.
0 commit comments