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

Commit e3f23a49 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

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

Merge "Process all messages of TestLooper after each test" into rvc-dev am: 78697715 am: 4ddd96b7

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