diff options
author | Harshit Mahajan <harshitmahajan@google.com> | 2024-05-09 12:10:36 +0000 |
---|---|---|
committer | Harshit Mahajan <harshitmahajan@google.com> | 2024-05-09 12:18:31 +0000 |
commit | 00e50067e4ce43cdaa3637f6e883940dcf907d4e (patch) | |
tree | db59f4b93f69c635cfd3dc8fd28ac9972b180bc0 | |
parent | 86b9f6441afa9c03ccf777f92e6886fb3ffa1187 (diff) | |
download | base-00e50067e4ce43cdaa3637f6e883940dcf907d4e.tar.gz |
Fix RescuePartyTest
Disable flags in old test, these could be removed during flag cleanup
Bug: 333720513
Test: atest RescuePartyTest
Change-Id: If659c702e3348c1c814f922f55d97776b99f2ff8
-rw-r--r-- | services/tests/mockingservicestests/src/com/android/server/RescuePartyTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/services/tests/mockingservicestests/src/com/android/server/RescuePartyTest.java b/services/tests/mockingservicestests/src/com/android/server/RescuePartyTest.java index 4a2164582890..42814e7c775e 100644 --- a/services/tests/mockingservicestests/src/com/android/server/RescuePartyTest.java +++ b/services/tests/mockingservicestests/src/com/android/server/RescuePartyTest.java @@ -239,6 +239,9 @@ public class RescuePartyTest { @Test public void testBootLoopDetectionWithExecutionForAllRescueLevels() { + // this is old test where the flag needs to be disabled + mSetFlagsRule.disableFlags(Flags.FLAG_RECOVERABILITY_DETECTION); + RescueParty.onSettingsProviderPublished(mMockContext); verify(() -> DeviceConfig.setMonitorCallback(eq(mMockContentResolver), any(Executor.class), @@ -449,6 +452,9 @@ public class RescuePartyTest { @Test public void testNonPersistentAppCrashDetectionWithScopedResets() { + // this is old test where the flag needs to be disabled + mSetFlagsRule.disableFlags(Flags.FLAG_RECOVERABILITY_DETECTION); + RescueParty.onSettingsProviderPublished(mMockContext); verify(() -> DeviceConfig.setMonitorCallback(eq(mMockContentResolver), any(Executor.class), @@ -506,6 +512,9 @@ public class RescuePartyTest { @Test public void testNonDeviceConfigSettingsOnlyResetOncePerLevel() { + // this is old test where the flag needs to be disabled + mSetFlagsRule.disableFlags(Flags.FLAG_RECOVERABILITY_DETECTION); + RescueParty.onSettingsProviderPublished(mMockContext); verify(() -> DeviceConfig.setMonitorCallback(eq(mMockContentResolver), any(Executor.class), @@ -879,6 +888,9 @@ public class RescuePartyTest { @Test public void testBootLoopLevels() { + // this is old test where the flag needs to be disabled + mSetFlagsRule.disableFlags(Flags.FLAG_RECOVERABILITY_DETECTION); + RescuePartyObserver observer = RescuePartyObserver.getInstance(mMockContext); assertEquals(observer.onBootLoop(0), PackageHealthObserverImpact.USER_IMPACT_LEVEL_0); |