diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/Test_LoRaWANTimer.cpp b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/Test_LoRaWANTimer.cpp index 9fb10a39854e..fd0ab985c86c 100644 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/Test_LoRaWANTimer.cpp +++ b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/Test_LoRaWANTimer.cpp @@ -71,9 +71,12 @@ TEST_F(Test_LoRaWANTimer, init) TEST_F(Test_LoRaWANTimer, start) { - equeue_stub.void_ptr = NULL; + struct equeue_event ptr; + equeue_stub.void_ptr = &ptr; timer_event_t ev; memset(&ev, 0, sizeof(ev)); + object->init(ev, my_callback); + equeue_stub.call_cb_immediately = true; object->start(ev, 10); }