Skip to content

Commit dd26862

Browse files
committed
lorawan: Use mock EventQueue
Previously we were using a real event queue with the lorawantimer unit tests. This caused an MBED_ASSERT to fail, as the real queue would check that the timer_id returned would be non-zero. The call_in stub returns 0 or null values, so was failing. Use the mock EventQueue instead.
1 parent 48c5dae commit dd26862

File tree

1 file changed

+2
-1
lines changed
  • connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer

1 file changed

+2
-1
lines changed

connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ target_sources(${TEST_NAME}
1919

2020
target_link_libraries(${TEST_NAME}
2121
PRIVATE
22+
mbed-fakes-event-queue
2223
mbed-headers-base
23-
mbed-headers-events
2424
mbed-headers-platform
2525
mbed-headers-lorawan
2626
mbed-stubs
27+
mbed-stubs-events
2728
mbed-stubs-headers
2829
gmock_main
2930
)

0 commit comments

Comments
 (0)