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

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

Merge "Process all messages of TestLooper after each test" into rvc-dev

parents 256b44d6 022e6635
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -86,7 +86,9 @@ public abstract class SysuiTestCase {
    public void SysuiTeardown() {
    public void SysuiTeardown() {
        InstrumentationRegistry.registerInstance(mRealInstrumentation,
        InstrumentationRegistry.registerInstance(mRealInstrumentation,
                InstrumentationRegistry.getArguments());
                InstrumentationRegistry.getArguments());
        // Reset the assert's testable looper to null.
        if (TestableLooper.get(this) != null) {
            TestableLooper.get(this).processAllMessages();
        }
        disallowTestableLooperAsMainThread();
        disallowTestableLooperAsMainThread();
        SystemUIFactory.cleanup();
        SystemUIFactory.cleanup();
    }
    }