Merge "ConnectivityManagerTest#testOpenConnection: skip Cuttlefish" into main

This commit is contained in:
Treehugger Robot 2025-01-29 21:10:13 -08:00 • committed by Gerrit Code Review
commit 5f18c68810

View file

@ -127,6 +127,7 @@ import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
import android.annotation.NonNull;
@ -922,6 +923,7 @@ public class ConnectivityManagerTest {
public void testOpenConnection() throws Exception {
assumeTrue(mPackageManager.hasSystemFeature(FEATURE_WIFI));
assumeTrue(mPackageManager.hasSystemFeature(FEATURE_TELEPHONY));
assumeFalse(Build.MODEL.contains("Cuttlefish"));
Network wifiNetwork = mCtsNetUtils.ensureWifiConnected();
Network cellNetwork = networkCallbackRule.requestCell();