testInstallCaCertLogged failed during cts test

Original change: https://android-review.googlesource.com/c/platform/cts/+/1311757

Bug: 158211302
Bug: 156661542

Merged-In: Id517e332b122a89705ab016c55b8640c7172d763
Change-Id: Id517e332b122a89705ab016c55b8640c7172d763
(cherry picked from commit ce409058de025f49897af43f5e0fac73362746f1)
diff --git a/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java b/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java
index 2e5f479..791f207 100644
--- a/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java
+++ b/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java
@@ -158,7 +158,7 @@
         // a trusted certificate isn't even installed we should fail now, loudly.
         assertEquals(installed, listed);
         int numTries = 0;
-        while (numTries < (maxWaitForCertificateTrustedSec * 10) && (installed != trusted)) {
+        while (numTries < (maxWaitForCertificateTrustedSec * 20) && (installed != trusted)) {
             try {
                 Thread.sleep(100);
                 trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert);