DO NOT MERGE: Ignore flaky setup failures in qt-dev
Bug: 255797461 Test: See forrest run in bug Change-Id: Ie0b15636edb2210b44a9b96edc267ea7271cc939
This commit is contained in:
@@ -58,6 +58,7 @@ import com.android.systemui.statusbar.phone.KeyguardDismissUtil;
|
||||
import com.android.systemui.statusbar.phone.ShadeController;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -111,7 +112,12 @@ public class SmartReplyViewTest extends SysuiTestCase {
|
||||
mContext.registerReceiver(mReceiver, new IntentFilter(TEST_ACTION));
|
||||
mDependency.get(KeyguardDismissUtil.class).setDismissHandler(action -> action.onDismiss());
|
||||
mDependency.injectMockDependency(ShadeController.class);
|
||||
mDependency.injectTestDependency(ActivityStarter.class, mActivityStarter);
|
||||
try {
|
||||
mDependency.injectTestDependency(ActivityStarter.class, mActivityStarter);
|
||||
} catch (IllegalStateException e) {
|
||||
// If we have a flaky leak, just ignore this method run (should fix in fresher branches)
|
||||
Assume.assumeNoException("Ignored flaky setup failure: b/255797461" , e);
|
||||
}
|
||||
mDependency.injectTestDependency(SmartReplyConstants.class, mConstants);
|
||||
|
||||
mContainer = new View(mContext, null);
|
||||
|
||||
Reference in New Issue
Block a user