Merge "avoid race condition on very fast tests"
This commit is contained in:
committed by
Android (Google) Code Review
commit
df185d7502
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user