commit | 9da2bb93c89e0f26a437abc42d2e01e115d6b3af | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Thu Dec 20 06:34:39 2018 -0800 |
committer | Kweku Adams <kwekua@google.com> | Thu Dec 20 06:42:57 2018 -0800 |
tree | 6172a174b3031654313f4dfebc5fcd048639ae13 | |
parent | 9507158846fae4be1a7f90adf5b8dad0475d482a [diff] |
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