From d15bcfe83ab255281fe5272889d5735de0c50cb6 Mon Sep 17 00:00:00 2001 From: Mirela Chirica Date: Fri, 15 Mar 2019 11:29:01 +0200 Subject: [PATCH] Cellular: Fix network interface test for cellular targets --- TESTS/network/interface/networkinterface_status.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TESTS/network/interface/networkinterface_status.cpp b/TESTS/network/interface/networkinterface_status.cpp index f19a31fa9b..44c9a98f22 100644 --- a/TESTS/network/interface/networkinterface_status.cpp +++ b/TESTS/network/interface/networkinterface_status.cpp @@ -36,7 +36,9 @@ nsapi_connection_status_t statuses[status_buffer_size]; void status_cb(nsapi_event_t event, intptr_t value) { - TEST_ASSERT_EQUAL(NSAPI_EVENT_CONNECTION_STATUS_CHANGE, event); + if (event != NSAPI_EVENT_CONNECTION_STATUS_CHANGE) { + return; + } statuses[status_write_counter] = static_cast(value); status_write_counter++;