Increase timeout for microdroid commands
L3 virtualization is terribly slow, and some commands may take more than
3 seconds. Increasing the time limit to resolve it.
Bug: 191153896
Test: atest MicrodroidHostTestCases
Change-Id: I0100f8b3e049912577cef9edb4fdbdac56ce3059
diff --git a/tests/hostside/java/android/virt/test/MicrodroidTestCase.java b/tests/hostside/java/android/virt/test/MicrodroidTestCase.java
index 87a9822..0a8a7d8 100644
--- a/tests/hostside/java/android/virt/test/MicrodroidTestCase.java
+++ b/tests/hostside/java/android/virt/test/MicrodroidTestCase.java
@@ -138,7 +138,7 @@
// Run a shell command on Microdroid
private String runOnMicrodroid(String... cmd) {
- final long timeout = 3000; // 3 sec. Microdroid is extremely slow on GCE-on-CF.
+ final long timeout = 30000; // 30 sec. Microdroid is extremely slow on GCE-on-CF.
CommandResult result =
RunUtil.getDefault()
.runTimedCmd(timeout, "adb", "-s", MICRODROID_SERIAL, "shell", join(cmd));