Fix flaky test?
- Fix testAttachDetach, process more messages so it actually does attach and detach - Don't inflate Clocks in QSFragmentTest because they are doing something weird... Test: runtest systemui Change-Id: I05360630ee8d96158b6ab36660f20588ad158a28 Fixes: 37773362
This commit is contained in:
@@ -161,12 +161,12 @@ public abstract class BaseFragmentTest {
|
||||
|
||||
protected void attachFragmentToWindow() {
|
||||
ViewUtils.attachView(mView);
|
||||
TestableLooper.get(this).processMessages(1);
|
||||
TestableLooper.get(this).processAllMessages();
|
||||
}
|
||||
|
||||
protected void detachFragmentToWindow() {
|
||||
ViewUtils.detachView(mView);
|
||||
TestableLooper.get(this).processMessages(1);
|
||||
TestableLooper.get(this).processAllMessages();
|
||||
}
|
||||
|
||||
protected void destroyFragments() {
|
||||
|
||||
Reference in New Issue
Block a user