Skip to content
Commit 9da2bb93 authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix flaking DeviceIdleController tests.

The mock DeviceIdleController.Constants object had all of its values set
to 0, so setAlarmSoon wasn't working properly because it would set the
alarm to now + 0, which would have passed by the time the next line in
the test came around.

Bug: 118639768
Test: atest com.android.server.DeviceIdleControllerTest
Change-Id: Ie485e9319d478e4887dc49e4715ddd6ccce9e768
parent 95071588
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment