Merge "Relax testValidation pass condition" into main am: cc2cfd252d
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2845494 Change-Id: I3c6452ea7f4eec93f176383e9f5c3a024bc4efcd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4cc304e025
1 changed files with 6 additions and 1 deletions
|
|
@ -255,7 +255,12 @@ class ConnectivityServiceIntegrationTest {
|
|||
na.connect()
|
||||
|
||||
testCallback.expectAvailableThenValidatedCallbacks(na.network, TEST_TIMEOUT_MS)
|
||||
assertEquals(2, nsInstrumentation.getRequestUrls().size)
|
||||
val requestedSize = nsInstrumentation.getRequestUrls().size
|
||||
if (requestedSize == 2 || (requestedSize == 1 &&
|
||||
nsInstrumentation.getRequestUrls()[0] == httpsProbeUrl)) {
|
||||
return
|
||||
}
|
||||
fail("Unexpected request urls: ${nsInstrumentation.getRequestUrls()}")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in a new issue