Ignore testFactoryReset in instant app mode

testFactoryReset() will need to check wifi enabled state from
WifiManager. However, test can not get WifiManager in instant
app mode, so ignore the test in instant app mode.

Bug: 190800362
Test: atest android.net.cts.ConnectivityManagerTest\
      #testFactoryReset --instant
Change-Id: Icd4a1b2316608ea03a4f7afb32e39400af71950c
This commit is contained in:
Chiachang Wang
2021-06-12 15:38:45 +08:00
parent b80e88d604
commit 8afa20e5d2

View File

@@ -2010,6 +2010,7 @@ public class ConnectivityManagerTest {
assertThrows(SecurityException.class, () -> mCm.factoryReset());
}
@AppModeFull(reason = "Cannot get WifiManager in instant app mode")
@Test
public void testFactoryReset() throws Exception {
assumeTrue(TestUtils.shouldTestSApis());