Merge "Don't run testRequestBackgroundNetwork in instant app mode"

This commit is contained in:
Treehugger Robot
2021-05-14 04:09:43 +00:00
committed by Gerrit Code Review

View File

@@ -1718,6 +1718,7 @@ public class ConnectivityManagerTest {
* Verify background request can only be requested when acquiring * Verify background request can only be requested when acquiring
* {@link android.Manifest.permission.NETWORK_SETTINGS}. * {@link android.Manifest.permission.NETWORK_SETTINGS}.
*/ */
@AppModeFull(reason = "Instant apps cannot create test networks")
@Test @Test
public void testRequestBackgroundNetwork() { public void testRequestBackgroundNetwork() {
// Cannot use @IgnoreUpTo(Build.VERSION_CODES.R) because this test also requires API 31 // Cannot use @IgnoreUpTo(Build.VERSION_CODES.R) because this test also requires API 31