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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user