@@ -283,7 +283,7 @@ static void *test_modem_cmux_setup(void)
283283 };
284284
285285 bus_mock_pipe = modem_backend_mock_init (& bus_mock , & bus_mock_config );
286- __ASSERT_NO_MSG (modem_pipe_open (bus_mock_pipe ) == 0 );
286+ __ASSERT_NO_MSG (modem_pipe_open (bus_mock_pipe , K_SECONDS ( 10 ) ) == 0 );
287287
288288 /* Connect CMUX */
289289 __ASSERT_NO_MSG (modem_cmux_attach (& cmux , bus_mock_pipe ) == 0 );
@@ -731,9 +731,9 @@ ZTEST(modem_cmux, test_modem_cmux_disconnect_connect)
731731ZTEST (modem_cmux , test_modem_cmux_disconnect_connect_sync )
732732{
733733 modem_backend_mock_prime (& bus_mock , & transaction_dlci1_disc );
734- zassert_true (modem_pipe_close (dlci1_pipe ) == 0 , "Failed to close DLCI1" );
734+ zassert_true (modem_pipe_close (dlci1_pipe , K_SECONDS ( 10 ) ) == 0 , "Failed to close DLCI1" );
735735 modem_backend_mock_prime (& bus_mock , & transaction_dlci2_disc );
736- zassert_true (modem_pipe_close (dlci2_pipe ) == 0 , "Failed to close DLCI2" );
736+ zassert_true (modem_pipe_close (dlci2_pipe , K_SECONDS ( 10 ) ) == 0 , "Failed to close DLCI2" );
737737 modem_backend_mock_prime (& bus_mock , & transaction_control_cld );
738738 zassert_true (modem_cmux_disconnect (& cmux ) == 0 , "Failed to disconnect CMUX" );
739739 zassert_true (modem_cmux_disconnect (& cmux ) == - EALREADY ,
@@ -745,21 +745,25 @@ ZTEST(modem_cmux, test_modem_cmux_disconnect_connect_sync)
745745 "Should already be connected" );
746746
747747 modem_backend_mock_prime (& bus_mock , & transaction_dlci1_sabm );
748- zassert_true (modem_pipe_open (dlci1_pipe ) == 0 , "Failed to open DLCI1 pipe" );
748+ zassert_true (modem_pipe_open (dlci1_pipe , K_SECONDS (10 )) == 0 ,
749+ "Failed to open DLCI1 pipe" );
749750 modem_backend_mock_prime (& bus_mock , & transaction_dlci2_sabm );
750- zassert_true (modem_pipe_open (dlci2_pipe ) == 0 , "Failed to open DLCI2 pipe" );
751+ zassert_true (modem_pipe_open (dlci2_pipe , K_SECONDS (10 )) == 0 ,
752+ "Failed to open DLCI2 pipe" );
751753}
752754
753755ZTEST (modem_cmux , test_modem_cmux_dlci_close_open_sync )
754756{
755757 modem_backend_mock_prime (& bus_mock , & transaction_dlci1_disc );
756- zassert_true (modem_pipe_close (dlci1_pipe ) == 0 , "Failed to close DLCI1" );
758+ zassert_true (modem_pipe_close (dlci1_pipe , K_SECONDS ( 10 ) ) == 0 , "Failed to close DLCI1" );
757759 modem_backend_mock_prime (& bus_mock , & transaction_dlci2_disc );
758- zassert_true (modem_pipe_close (dlci2_pipe ) == 0 , "Failed to close DLCI2" );
760+ zassert_true (modem_pipe_close (dlci2_pipe , K_SECONDS ( 10 ) ) == 0 , "Failed to close DLCI2" );
759761 modem_backend_mock_prime (& bus_mock , & transaction_dlci1_sabm );
760- zassert_true (modem_pipe_open (dlci1_pipe ) == 0 , "Failed to open DLCI1 pipe" );
762+ zassert_true (modem_pipe_open (dlci1_pipe , K_SECONDS (10 )) == 0 ,
763+ "Failed to open DLCI1 pipe" );
761764 modem_backend_mock_prime (& bus_mock , & transaction_dlci2_sabm );
762- zassert_true (modem_pipe_open (dlci2_pipe ) == 0 , "Failed to open DLCI2 pipe" );
765+ zassert_true (modem_pipe_open (dlci2_pipe , K_SECONDS (10 )) == 0 ,
766+ "Failed to open DLCI2 pipe" );
763767}
764768
765769ZTEST (modem_cmux , test_modem_cmux_prevent_work_while_released )
0 commit comments