Skip to content

Commit 7d7f7aa

Browse files
bjarki-andreasencarlescufi
authored andcommitted
tests: subsys: modem: cmux: Update resync unit test
Update the unit test to expect the new simplified resync behavior, and validate that new resync is working. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 3debfc8 commit 7d7f7aa

File tree

1 file changed

+0
-11
lines changed
  • tests/subsys/modem/modem_cmux/src

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ static uint8_t cmux_frame_data_dlci1_at_newline[] = {0x0D, 0x0A};
144144
/*************************************************************************************************/
145145
static uint8_t cmux_frame_dlci1_at_at_desync[] = {0x41, 0x54, 0x30, 0xF9};
146146

147-
static uint8_t cmux_frame_resync[] = {0xF9, 0xF9, 0xF9};
148-
149147
/*************************************************************************************************/
150148
/* DLCI2 PPP CMUX frames */
151149
/*************************************************************************************************/
@@ -401,15 +399,6 @@ ZTEST(modem_cmux, test_modem_cmux_resync)
401399

402400
modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_at_desync,
403401
sizeof(cmux_frame_dlci1_at_at_desync));
404-
405-
k_msleep(100);
406-
407-
ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1));
408-
zassert_true(ret == sizeof(cmux_frame_resync), "Expected resync flags to be sent to bus");
409-
zassert_true(memcmp(buffer1, cmux_frame_resync, sizeof(cmux_frame_resync)) == 0,
410-
"Expected resync flags to be sent to bus");
411-
412-
modem_backend_mock_put(&bus_mock, cmux_frame_resync, sizeof(cmux_frame_resync));
413402
modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_at, sizeof(cmux_frame_dlci1_at_at));
414403
modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_newline,
415404
sizeof(cmux_frame_dlci1_at_newline));

0 commit comments

Comments
 (0)