diff options
| author | 2024-02-20 22:37:44 +0000 | |
|---|---|---|
| committer | 2024-02-20 22:54:24 +0000 | |
| commit | a7ddec03bc19b4c8df15df2989f15068c8a14675 (patch) | |
| tree | 8098fc9e69e76c0621ba391c6c8cd438dd0742f1 /libs/androidfw/FileStream.cpp | |
| parent | abd727d7ba9b0529f943b32a39558be32b988b69 (diff) | |
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions