Merge "avoid race condition on very fast tests"

This commit is contained in:
TreeHugger Robot
2017-02-09 16:46:49 +00:00
committed by Android (Google) Code Review

View File

@@ -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