Skip to content

Commit 48d69b4

Browse files
tomi-fontaescolar
authored andcommitted
tests: modem: cmux: add missing timeout param
Add the missing timeout parameter to `modem_pipe_open()` and `modem_pipe_close()` calls. 10 seconds is the default value used in the Zephyr tree. Fixes a regression introduced in #74325. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent e2549cc commit 48d69b4

File tree

1 file changed

+6
-6
lines changed
  • tests/subsys/modem/modem_cmux/src

1 file changed

+6
-6
lines changed

tests/subsys/modem/modem_cmux/src/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,14 +793,14 @@ ZTEST(modem_cmux, test_modem_cmux_prevent_work_while_released)
793793
/* Validate no new requests can be submitted */
794794
modem_cmux_connect(&cmux);
795795
modem_cmux_disconnect(&cmux);
796-
modem_pipe_open(dlci1_pipe);
797-
modem_pipe_open(dlci2_pipe);
796+
modem_pipe_open(dlci1_pipe, K_SECONDS(10));
797+
modem_pipe_open(dlci2_pipe, K_SECONDS(10));
798798
modem_pipe_transmit(dlci1_pipe, transmit, sizeof(transmit));
799799
modem_pipe_transmit(dlci2_pipe, transmit, sizeof(transmit));
800800
modem_pipe_receive(dlci1_pipe, receive, sizeof(receive));
801801
modem_pipe_receive(dlci2_pipe, receive, sizeof(receive));
802-
modem_pipe_close(dlci1_pipe);
803-
modem_pipe_close(dlci2_pipe);
802+
modem_pipe_close(dlci1_pipe, K_SECONDS(10));
803+
modem_pipe_close(dlci2_pipe, K_SECONDS(10));
804804
k_msleep(500);
805805
zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) == 0);
806806

@@ -809,9 +809,9 @@ ZTEST(modem_cmux, test_modem_cmux_prevent_work_while_released)
809809
modem_backend_mock_prime(&bus_mock, &transaction_control_sabm);
810810
zassert_ok(modem_cmux_connect(&cmux));
811811
modem_backend_mock_prime(&bus_mock, &transaction_dlci1_sabm);
812-
zassert_ok(modem_pipe_open(dlci1_pipe));
812+
zassert_ok(modem_pipe_open(dlci1_pipe, K_SECONDS(10)));
813813
modem_backend_mock_prime(&bus_mock, &transaction_dlci2_sabm);
814-
zassert_ok(modem_pipe_open(dlci2_pipe));
814+
zassert_ok(modem_pipe_open(dlci2_pipe, K_SECONDS(10)));
815815
}
816816

817817
ZTEST_SUITE(modem_cmux, NULL, test_modem_cmux_setup, test_modem_cmux_before, NULL, NULL);

0 commit comments

Comments
 (0)