Merge "Fix test flake in sysui test suite." into udc-dev

This commit is contained in:
Aaron Liu
2023-07-17 21:34:03 +00:00
committed by Android (Google) Code Review

View File

@@ -187,9 +187,7 @@ public class KeyguardAbsKeyInputViewControllerTest extends SysuiTestCase {
@Test @Test
public void testLockedOut_verifyPasswordAndUnlock_doesNotEnableViewInput() { public void testLockedOut_verifyPasswordAndUnlock_doesNotEnableViewInput() {
mKeyguardAbsKeyInputViewController.handleAttemptLockout( mKeyguardAbsKeyInputViewController.handleAttemptLockout(SystemClock.elapsedRealtime());
SystemClock.elapsedRealtime() + 1000);
mKeyguardAbsKeyInputViewController.verifyPasswordAndUnlock();
verify(mAbsKeyInputView).setPasswordEntryInputEnabled(false); verify(mAbsKeyInputView).setPasswordEntryInputEnabled(false);
verify(mAbsKeyInputView).setPasswordEntryEnabled(false); verify(mAbsKeyInputView).setPasswordEntryEnabled(false);
verify(mAbsKeyInputView, never()).setPasswordEntryInputEnabled(true); verify(mAbsKeyInputView, never()).setPasswordEntryInputEnabled(true);