libpower: Increase buffer time for wake lock to release in WakeLockDestructor test
This addresses flakiness caused by insufficient time for wake lock stats
updates.
Wakelock object destructors take care of wake lock release as well as
wake lock stats update in the SystemSuspend service. The wake lock
release mechanism involves decrementing the suspend counter, which
involves acquiring the autosuspend lock. A wait time of 1ms for wake
lock stats to update is found not sufficient for this test causing test
flakiness, hence we increase it to 50ms. '50ms' is a heuristically
chosen value.
Test: atest libpower_test on AOSP CF x86_64 target
Bug: 346906648
Change-Id: Ie2eb36ec887734f3c6d125584afd81b69cb65f87
1 file changed