connectedhomeip
connectedhomeip copied to clipboard
[Test Failed] ICD unit test TestICDStateObserverOnTransitionToIdleModeEqualActiveModeDuration failure
Test issue(s)
The test TestICDStateObserverOnTransitionToIdleModeEqualActiveModeDuration fails at this check https://github.com/project-chip/connectedhomeip/blob/master/src/app/icd/server/tests/TestICDManager.cpp#L1091 on systems using freeRTOS-based system layer timers.
The current assumption of the test is that the OnTransitionToIdle
callback isn't called directly if timer is started with a timeout value of 0 here. The test then expects 1 extra event loop for the callback to be executed.
That seems to be true with the POSIX system layer timer implementation but not on the freeRTOS-based one, where the call back is instead called instantly.
This leads to different test results on other platforms.
Platform
freeRTOS
Anything else?
No response