File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/subsys/modem/modem_chat/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -635,8 +635,10 @@ ZTEST(modem_chat, test_script_chat_timeout_cmd)
635
635
int ret ;
636
636
bool called ;
637
637
638
+ zassert_false (modem_chat_is_running (& cmd ));
638
639
zassert_ok (modem_chat_run_script_async (& cmd , & script_timeout_cmd ),
639
640
"Failed to start script" );
641
+ zassert_true (modem_chat_is_running (& cmd ));
640
642
k_msleep (100 );
641
643
642
644
/*
@@ -672,6 +674,7 @@ ZTEST(modem_chat, test_script_chat_timeout_cmd)
672
674
*/
673
675
modem_backend_mock_put (& mock , ok_response , sizeof (ok_response ) - 1 );
674
676
k_msleep (100 );
677
+ zassert_false (modem_chat_is_running (& cmd ));
675
678
676
679
called = atomic_test_bit (& callback_called , MODEM_CHAT_UTEST_ON_SCRIPT_CALLBACK_BIT );
677
680
zassert_true (called == true, "Script callback should have been called" );
You can’t perform that action at this time.
0 commit comments