Ignore failing tests under com.android.settings.users

Bug: 313530297

Test: atest
Change-Id: I946b2276b8be8f1225263e9716a757c770a80ea0
This commit is contained in:
FanWu
2023-11-28 10:08:38 +08:00
parent 63b69694f6
commit 021e3492e7
3 changed files with 23 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ import com.android.settings.testutils.shadow.ShadowSecureSettings;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@@ -126,6 +127,7 @@ public class TimeoutToDockUserPreferenceControllerTest {
BasePreferenceController.CONDITIONALLY_UNAVAILABLE);
}
@Ignore("b/313530297")
@Test
public void getAvailabilityStatus_isCurrentlyMainUser_returnDisabledForUser() {
when(Utils.canCurrentUserDream(mContext)).thenReturn(true);
@@ -134,6 +136,7 @@ public class TimeoutToDockUserPreferenceControllerTest {
BasePreferenceController.DISABLED_FOR_USER);
}
@Ignore("b/313530297")
@Test
public void getAvailabilityStatus_featureAndMultiUserEnabledAndNonMainUser_returnAvailable() {
when(Utils.canCurrentUserDream(mContext)).thenReturn(false);