From f5396e37f8806f3dcce1ea4c85cef3a1a3178a9e Mon Sep 17 00:00:00 2001 From: Jing Ji Date: Tue, 23 Mar 2021 20:43:15 -0700 Subject: [PATCH] Fix flaky ApplicationExitInfoTest Make the tolerance threshold longer Bug: 183550299 Test: atest ApplicationExitInfoTest Change-Id: I92ba2ef83e43badbaccd766bb2ab5c89ca04d008 --- .../src/com/android/server/am/ApplicationExitInfoTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/tests/mockingservicestests/src/com/android/server/am/ApplicationExitInfoTest.java b/services/tests/mockingservicestests/src/com/android/server/am/ApplicationExitInfoTest.java index 22b2f7e04069c..d220444f47de2 100644 --- a/services/tests/mockingservicestests/src/com/android/server/am/ApplicationExitInfoTest.java +++ b/services/tests/mockingservicestests/src/com/android/server/am/ApplicationExitInfoTest.java @@ -1015,7 +1015,7 @@ public class ApplicationExitInfoTest { assertNotNull(info); if (timestamp != null) { - final long tolerance = 1000; // ms + final long tolerance = 10000; // ms assertTrue(timestamp - tolerance <= info.getTimestamp()); assertTrue(timestamp + tolerance >= info.getTimestamp()); }