commit | 4cc304e02540d135babdf450b484fc9989c779bc | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Nov 24 03:44:00 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Nov 24 03:44:00 2023 +0000 |
tree | 43d2b67a540c8fb2cb8385c86c13a960c8b76f9c | |
parent | 6454939961466980268cad3118c61659387cd965 [diff] | |
parent | cc2cfd252d176b24025d7d6da1501ffca86bb011 [diff] |
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>
diff --git a/tests/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt b/tests/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt index 9b082a4..496d163 100644 --- a/tests/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt +++ b/tests/integration/src/com/android/server/net/integrationtests/ConnectivityServiceIntegrationTest.kt
@@ -255,7 +255,12 @@ 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