[DO NOT MERGE] Ignore flaky tests

Until a better fix can be found.

Fixes: 223385977
Test: atest KeyguardViewMediatorTest
Change-Id: I9579f5e0fa15a40d8977919029e9d72bdb981b69
This commit is contained in:
Matt Pietal
2022-03-10 14:15:04 -05:00
parent 5b2e8af805
commit 5c85eadaa8

View File

@@ -61,6 +61,7 @@ import com.android.systemui.util.concurrency.FakeExecutor;
import com.android.systemui.util.time.FakeSystemClock; import com.android.systemui.util.time.FakeSystemClock;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -129,6 +130,7 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
mViewMediator.onSystemReady(); mViewMediator.onSystemReady();
} }
@Ignore("flaky, b/223385977")
@Test @Test
public void testOnGoingToSleep_UpdatesKeyguardGoingAway() { public void testOnGoingToSleep_UpdatesKeyguardGoingAway() {
mViewMediator.onStartedGoingToSleep(OFF_BECAUSE_OF_USER); mViewMediator.onStartedGoingToSleep(OFF_BECAUSE_OF_USER);
@@ -136,12 +138,14 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
verify(mStatusBarKeyguardViewManager, never()).setKeyguardGoingAwayState(anyBoolean()); verify(mStatusBarKeyguardViewManager, never()).setKeyguardGoingAwayState(anyBoolean());
} }
@Ignore("flaky, b/223385977")
@Test @Test
public void testRegisterDumpable() { public void testRegisterDumpable() {
verify(mDumpManager).registerDumpable(KeyguardViewMediator.class.getName(), mViewMediator); verify(mDumpManager).registerDumpable(KeyguardViewMediator.class.getName(), mViewMediator);
verify(mStatusBarKeyguardViewManager, never()).setKeyguardGoingAwayState(anyBoolean()); verify(mStatusBarKeyguardViewManager, never()).setKeyguardGoingAwayState(anyBoolean());
} }
@Ignore("flaky, b/223385977")
@Test @Test
public void testKeyguardGone_notGoingaway() { public void testKeyguardGone_notGoingaway() {
mViewMediator.mViewMediatorCallback.keyguardGone(); mViewMediator.mViewMediatorCallback.keyguardGone();