Skip to content

Cellular: cellular_network_test Compilation Error Removed #10230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions features/cellular/TESTS/api/cellular_network/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void test_other()
err = nw->get_operator_params(format, operator_params);
TEST_ASSERT(err == NSAPI_ERROR_OK);

nsapi_connection_status_t st = nw->get_connection_status();
nsapi_connection_status_t st = ctx->get_connection_status();
TEST_ASSERT(st == NSAPI_STATUS_DISCONNECTED);

// 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
Expand All @@ -207,13 +207,13 @@ static void test_detach()
rtos::ThisThread::sleep_for(6 * 1000);
((AT_CellularNetwork *)nw)->get_at_handler().flush();

nsapi_connection_status_t st = nw->get_connection_status();
nsapi_connection_status_t st = ctx->get_connection_status();
TEST_ASSERT(st == NSAPI_STATUS_DISCONNECTED);

TEST_ASSERT(nw->detach() == NSAPI_ERROR_OK);
// wait to process URC's, received after detach
rtos::ThisThread::sleep_for(500);
st = nw->get_connection_status();
st = ctx->get_connection_status();
TEST_ASSERT(st == NSAPI_STATUS_DISCONNECTED);
}

Expand Down