Fix flaky ApplicationExitInfoTest

Make the tolerance threshold longer

Bug: 183550299
Test: atest ApplicationExitInfoTest
Change-Id: I92ba2ef83e43badbaccd766bb2ab5c89ca04d008
This commit is contained in:
Jing Ji
2021-03-23 20:43:15 -07:00
parent 1325fdd07a
commit f5396e37f8

View File

@@ -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());
}