[DO NOT MERGE] Disable tests that depend on the prebuilt version in U

This should be reverted as soon as it is merged into U
and the build request is submitted.

Bug: 286649301
Ignore-AOSP-First: udc-dev only change
Test: NetworkAgentTest, TH
Change-Id: I2cbe990675b109e4ba744101dd7dbbb20229376f
This commit is contained in:
Chalard Jean
2023-06-29 09:33:54 +09:00
committed by Jean Chalard
parent 1214b90646
commit a0e8ab4933

View File

@@ -130,6 +130,7 @@ import kotlin.test.assertNull
import kotlin.test.assertTrue
import kotlin.test.fail
import org.junit.After
import org.junit.Assume.assumeFalse
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
@@ -1214,6 +1215,7 @@ class NetworkAgentTest {
@Test
fun testUnregisterAfterReplacement() {
assumeFalse(Build.isDebuggable()) // Disabled presubmit pending prebuilt update on U
// Keeps an eye on all test networks.
val matchAllCallback = TestableNetworkCallback(timeoutMs = DEFAULT_TIMEOUT_MS)
registerNetworkCallback(makeTestNetworkRequest(), matchAllCallback)
@@ -1484,6 +1486,7 @@ class NetworkAgentTest {
@Test
fun testNativeNetworkCreation_PhysicalNetwork() {
assumeFalse(Build.isDebuggable()) // Disabled presubmit pending prebuilt update on U
doTestNativeNetworkCreation(
expectCreatedImmediately = SHOULD_CREATE_NETWORKS_IMMEDIATELY,
intArrayOf(TRANSPORT_CELLULAR))