Skip to content

Commit d3d0622

Browse files
author
Cruz Monrreal
authored
Merge pull request ARMmbed#10230 from u-blox/cellular_network_test
Cellular: cellular_network_test Compilation Error Removed
2 parents 4cdc3b7 + 71e5a1d commit d3d0622

File tree

1 file changed

+3
-3
lines changed
  • features/cellular/TESTS/api/cellular_network

1 file changed

+3
-3
lines changed

features/cellular/TESTS/api/cellular_network/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static void test_other()
188188
err = nw->get_operator_params(format, operator_params);
189189
TEST_ASSERT(err == NSAPI_ERROR_OK);
190190

191-
nsapi_connection_status_t st = nw->get_connection_status();
191+
nsapi_connection_status_t st = ctx->get_connection_status();
192192
TEST_ASSERT(st == NSAPI_STATUS_DISCONNECTED);
193193

194194
// TELIT_HE910 and QUECTEL_BG96 just gives an error and no specific error number so we can't know is this real error or that modem/network does not support the command
@@ -207,13 +207,13 @@ static void test_detach()
207207
rtos::ThisThread::sleep_for(6 * 1000);
208208
((AT_CellularNetwork *)nw)->get_at_handler().flush();
209209

210-
nsapi_connection_status_t st = nw->get_connection_status();
210+
nsapi_connection_status_t st = ctx->get_connection_status();
211211
TEST_ASSERT(st == NSAPI_STATUS_DISCONNECTED);
212212

213213
TEST_ASSERT(nw->detach() == NSAPI_ERROR_OK);
214214
// wait to process URC's, received after detach
215215
rtos::ThisThread::sleep_for(500);
216-
st = nw->get_connection_status();
216+
st = ctx->get_connection_status();
217217
TEST_ASSERT(st == NSAPI_STATUS_DISCONNECTED);
218218
}
219219

0 commit comments

Comments
 (0)