Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a7ddec03 authored by George Chan's avatar George Chan
Browse files

Fixed BackgroundInstallControlServiceTest flaky case.

The test case relied on consecutive calls of System.currentTimeMillis()
and SystemClock.uptimeMillis() with the difference be at most 1msec.
Which is not a practical time window for consistency. Adding a large
buffer instead.

Test: atest FrameworksServicesTests:com.android.server.pm.BackgroundInstallControlServiceTest#testHandleUsageEvent_fallsBackToAppInfoTimeWhenHistoricalSessionsNotFound --iterations 10
Bug: 326107161
Change-Id: I4d46f9500ffa553d83a324ebac11b4d259ee852f
parent abd727d7
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