ublox-at-cellular-interface
Diff: TESTS/unit_tests/default/main.cpp
- Revision:
- 27:3d709ee8c3e1
- Parent:
- 23:9098a541452b
- Child:
- 30:0f571a4920c8
--- 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));