Don't run testGetAllNetworkStateSnapshots in instant app mode

Instant app mode doesn't have permission to request networks.
Thus, ignore the test in instant app mode.

Bug: 189724761
Test: CtsNetTestCases:ConnectivityManagerTest#testGetAllNetworkStateSnapshots \
      --instant
Change-Id: I2897462f4ef6c019b80a3b5159b1c41f397af8de
This commit is contained in:
Aaron Huang
2021-06-10 19:22:10 +08:00
parent 473ddeaebb
commit 3d35a9736f

View File

@@ -461,6 +461,7 @@ public class ConnectivityManagerTest {
android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE);
}
@AppModeFull(reason = "Cannot request network in instant app mode")
@DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.R)
@Test
public void testGetAllNetworkStateSnapshots()