Merge "Process all messages of TestLooper after each test" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7869771592
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user