commit | 82615642edb1749ab38a8093297528a1901ae0b9 | [log] [tgz] |
---|---|---|
author | MÃ¥rten Kongstad <marten.kongstad@sony.com> | Thu Mar 28 14:03:14 2019 +0100 |
committer | Todd Kennedy <toddke@google.com> | Thu May 02 10:41:08 2019 -0700 |
tree | 0f9bd04c3e7552cfde07cafbf70f414ff405d284 | |
parent | 50e31711af6ca41e8ac01ccbe22818f22e44b85c [diff] |
OverlayDeviceTests: don't rely on Thread#sleep When a request to enable an overlay is received by the overlay manager service, there is some lead time before the affected process is updated. Tests need to wait until this happens. Remove the calls to Thread#sleep; instead, poll for a change to AssetManager#getApkPaths (which is faster and more reliable). Bug: 130257643 Test: atest OverlayDeviceTests Change-Id: I9f7e6207a68431859bacac0462a2bab94b4efc2d