Extend timeout for the compilation job
We extended the timeout that odrefresh applies, which implies that our
scheduled job could also take longer.
Bug: 242690403
Test: Builds.
Change-Id: I3898336ceb072288f29d787d9aec2285b17c2a27
diff --git a/test/odsign/test-src/com/android/tests/odsign/CompOsTestUtils.java b/test/odsign/test-src/com/android/tests/odsign/CompOsTestUtils.java
index 8c2c5b2..3da79cd 100644
--- a/test/odsign/test-src/com/android/tests/odsign/CompOsTestUtils.java
+++ b/test/odsign/test-src/com/android/tests/odsign/CompOsTestUtils.java
@@ -16,7 +16,6 @@
package com.android.tests.odsign;
-import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth.assertWithMessage;
import static org.junit.Assert.fail;
@@ -36,7 +35,8 @@
"/data/misc/apexdata/com.android.art/compos-pending";
/** Maximum time for a slow VM like cuttlefish to boot and finish odrefresh. */
- private static final int VM_ODREFRESH_MAX_SECONDS = 360;
+ // odrefresh overall timeout is currently 480s; add some generous padding for VM startup.
+ private static final int VM_ODREFRESH_MAX_SECONDS = 480 + 60;
/** Waiting time for the job to be scheduled after staging an APEX */
private static final int JOB_CREATION_MAX_SECONDS = 5;