Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 27:3d709ee8c3e1, committed 2019-05-23
- Comitter:
- wajahat.abbas@u-blox.com
- Date:
- Thu May 23 13:07:14 2019 +0500
- Parent:
- 26:4f28a1eaa2aa
- Commit message:
- updated RAT and MNO test cases
Changed in this revision
TESTS/unit_tests/default/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TESTS/unit_tests/default/main.cpp Wed May 22 16:14:50 2019 +0500 +++ b/TESTS/unit_tests/default/main.cpp Thu May 23 13:07:14 2019 +0500 @@ -1080,7 +1080,7 @@ if (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) { tr_error("RAT should only be set in detached state"); // Deregister from Network - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); } // Get and store initial RAT set on modem @@ -1125,7 +1125,7 @@ TEST_ASSERT(interface->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0); - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); } @@ -1159,7 +1159,7 @@ if (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) { tr_error("MNO profile should only be set in detached state"); // Deregister from Network - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); } // Getting current mno profile @@ -1184,7 +1184,7 @@ TEST_ASSERT(interface->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0); - TEST_ASSERT(interface->nwk_deregistration()); + drop_connection(interface); // Restore MNO profile to previous settings TEST_ASSERT(interface->set_mno_profile((UbloxATCellularInterface::MNOProfile)previous_profile));