Merge "Don't run testRequestBackgroundNetwork in instant app mode" am: 3531b188ce am: e7bb625eaf am: 0d5000dbbd

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1695289

Change-Id: Icc5b0fff3d74f3f577e591fcb7046f4c42da558e
This commit is contained in:
Treehugger Robot
2021-05-14 05:09:38 +00:00
committed by Automerger Merge Worker

View File

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