From cd99e8c839dae6986d96d949f0f7eabba4218ee9 Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Fri, 7 Feb 2025 16:11:46 +0900 Subject: [PATCH] Address review comments from aosp/3482151 I didn't notice repo had failed the last upload with error 500... This patch addresses the last outstanding comment. Test: ConnectivityManagerTest Change-Id: I970613a71e0b1854261e9615ff113a1d404fc1d0 --- .../net/src/android/net/cts/ConnectivityManagerTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java index 3828dc80a3..7292c5d505 100644 --- a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java +++ b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java @@ -1259,11 +1259,8 @@ public class ConnectivityManagerTest { mCm.registerNetworkCallback(nr, pendingIntent); try { - mCtsNetUtils.ensureWifiConnected(); - - // Wait for delivery of the Intent notifying of the availability of the INTERNET - // network even if it was already connected as a state-based action when the callback - // is registered. + // Wait for delivery of the Intent notifying of the availability of the + // INTERNET-providing network. Test setup makes sure it's already connected. assertTrue("Did not receive expected Intent " + intent + " for INTERNET", received.block(NETWORK_CALLBACK_TIMEOUT_MS)); } finally {