Merge "Revert "Diable ConnectivityManagerTest#testFactoryReset"" into main

This commit is contained in:
Mark Chien
2023-07-27 09:11:11 +00:00
committed by Gerrit Code Review

View File

@@ -2560,10 +2560,9 @@ public class ConnectivityManagerTest {
assertThrows(SecurityException.class, () -> mCm.factoryReset());
}
// @AppModeFull(reason = "Cannot get WifiManager in instant app mode")
// @Test
// Temporarily disable the unreliable test, which is blocked by b/254183718.
private void testFactoryReset() throws Exception {
@AppModeFull(reason = "Cannot get WifiManager in instant app mode")
@Test
public void testFactoryReset() throws Exception {
assumeTrue(TestUtils.shouldTestSApis());
// Store current settings.