changes for R412M test cases

Files at this revision

API Documentation at this revision

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));