summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kunal <malhk@google.com> 2023-10-16 23:19:56 +0000
committer Kunal Malhotra <malhk@google.com> 2023-10-17 16:43:06 +0000
commitcb5cf5f5fbe197a6f954fc8796bf50c106e67ca8 (patch)
tree5f4e59b309067d4e6b9502d4992d49b3c9bc1177
parentbb756a05d86802c25d2351ed0a316019109445e1 (diff)
Bug fix for failing test. Process start times out due to long sleep time, which should only be done for wedge.
Bug: 300996262 Test: atest FrameworksMockingServicesTests:AsyncProcessStartTest#testNormal Change-Id: Ia58c5f1865ebc050cc55e98b6d039339f6205723
-rw-r--r--services/tests/mockingservicestests/src/com/android/server/am/AsyncProcessStartTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/tests/mockingservicestests/src/com/android/server/am/AsyncProcessStartTest.java b/services/tests/mockingservicestests/src/com/android/server/am/AsyncProcessStartTest.java
index 596a3f3d0400..b3605ccfc25d 100644
--- a/services/tests/mockingservicestests/src/com/android/server/am/AsyncProcessStartTest.java
+++ b/services/tests/mockingservicestests/src/com/android/server/am/AsyncProcessStartTest.java
@@ -280,7 +280,9 @@ public class AsyncProcessStartTest {
0, 0);
// Sleep until timeout should have triggered
- SystemClock.sleep(ActivityManagerService.PROC_START_TIMEOUT + 1000);
+ if (wedge) {
+ SystemClock.sleep(ActivityManagerService.PROC_START_TIMEOUT + 1000);
+ }
return app;
}