Skip to content

Commit e767255

Browse files
author
Teemu Kultala
committed
cellular: registration status change unit test fix
1 parent af534f5 commit e767255

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

UNITTESTS/features/cellular/framework/AT/at_cellularcontext/at_cellularcontexttest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class TestAT_CellularContext : public testing::Test {
5353
ATHandler_stub::bool_value = false;
5454
ATHandler_stub::uint8_value = 0;
5555
ATHandler_stub::fh_value = NULL;
56-
ATHandler_stub::callback = NULL;
5756
ATHandler_stub::call_immediately = false;
5857
ATHandler_stub::resp_info_true_counter = false;
5958
ATHandler_stub::info_elem_true_counter = false;
@@ -63,6 +62,9 @@ class TestAT_CellularContext : public testing::Test {
6362
ATHandler_stub::read_string_table[kRead_string_table_size];
6463
ATHandler_stub::resp_stop_success_count = kResp_stop_count_default;
6564
CellularDevice_stub::connect_counter = 2;
65+
for (int i=0; i < kATHandler_urc_table_max_size; i++) {
66+
ATHandler_stub::callback[i] = NULL;
67+
}
6668
}
6769

6870
void TearDown()

0 commit comments

Comments
 (0)