diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java index 21c7fce445796..e8eee24b8dc05 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java @@ -79,6 +79,12 @@ public class StatusBarTest extends SysuiTestCase { mMetricsReader = new MetricsReader(); mMetricsReader.checkpoint(); // clear out old logs + try { + // pause so that no new events arrive in the rest of this millisecond. + Thread.sleep(2); + } catch (InterruptedException e) { + // pass + } } @Test