commit | 58c0dc50b45eb029015ceaf23744ed189c10444b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Jul 29 03:36:06 2020 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Fri Aug 28 14:54:21 2020 +0000 |
tree | 67b68c07cba25ac9f830b4bd14afdc050e095c3b | |
parent | cdcd99836200940c93cf1ca64d83e1ce91f7ecf2 [diff] |
testAlwaysOnVpnUnsupportedPackageReplaced failed during cts test Original change: https://android-review.googlesource.com/c/platform/cts/+/1366979 Test: run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAlwaysOnVpnUnsupportedPackageReplaced Bug: 161731350 Bug: 163410385 Change-Id: Ic1518689c4b92abcb9b26cd89c9e2b398b1f6e58 Merged-In: Ic1518689c4b92abcb9b26cd89c9e2b398b1f6e58 (cherry picked from commit 2d8433c6c812beb6e3132b12db1f53eaa6bb626d)
diff --git a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java index bf466cf..d16f982 100644 --- a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java +++ b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
@@ -564,6 +564,8 @@ executeDeviceTestMethod(".AlwaysOnVpnUnsupportedTest", "testSetSupportedVpnAlwaysOn"); // Update the app to target higher API level, but with manifest opt-out installAppAsUser(VPN_APP_NOT_ALWAYS_ON_APK, mUserId); + // wait for the app update install completed, ready to be tested + waitForBroadcastIdle(); executeDeviceTestMethod(".AlwaysOnVpnUnsupportedTest", "testAssertNoAlwaysOnVpn"); } finally { executeDeviceTestMethod(".AlwaysOnVpnUnsupportedTest", "testClearAlwaysOnVpn");