Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df185d75 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "avoid race condition on very fast tests"

parents 024d22fd 6f6c0cd4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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