commit | 52c5bf2b6f5b919415c052daef9bae4d0728419d | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Oct 20 02:53:49 2021 +0000 |
committer | Chiachang Wang <chiachangwang@google.com> | Thu Oct 21 07:04:40 2021 +0000 |
tree | eaeaf4aec5787110602d3958c33062fe46801017 | |
parent | e3b6dc0f67b9b87bdba4ed801eef2834a57e3c07 [diff] |
Exclude testGetMultipathPreference on no Wi-Fi devices Bug: 202228414 Test: atest CtsNetTestCases Change-Id: Ie7cd52942b93de5d0b0dd5be49d1f85afafb4ea7 Merged-In: I3112ffb816fd16b2fc7a87c35d8f95eef0144281 (cherry picked from commit db354f783efca0ed7506e3cbf01e1715ab593ae6)
diff --git a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java index 5f07a27..33e6caa 100644 --- a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java +++ b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
@@ -1203,6 +1203,7 @@ @AppModeFull(reason = "Cannot get WifiManager in instant app mode") @Test public void testGetMultipathPreference() throws Exception { + assumeTrue(mPackageManager.hasSystemFeature(FEATURE_WIFI)); final ContentResolver resolver = mContext.getContentResolver(); mCtsNetUtils.ensureWifiConnected(); final String ssid = unquoteSSID(mWifiManager.getConnectionInfo().getSSID());