commit | 26c8849a3433dbe184014f214b17c5abcaf3667d | [log] [tgz] |
---|---|---|
author | Jimmy Chen <jimmycmchen@google.com> | Tue May 25 23:50:23 2021 +0800 |
committer | Jimmy Chen <jimmycmchen@google.com> | Wed May 26 01:49:37 2021 +0800 |
tree | 1df4f41891008d67f4dcb4fe42ade0a886ebaf5e | |
parent | 8c4843999fc12db8a0fba0c50277fb9f6dc61912 [diff] |
wifi: adapt to multi-type config conversion A multi-type configuration might be converted to more than 1 single-type configuration. As a result, the list checking codes should be revised to a loose comparison. Bug: 188570800 Test: atest WifiNetworkConfigurationWithoutFineLocationPermissionTest Change-Id: Icef6849c89f4a5a36c83a69ab8346d91a8ec4a58
diff --git a/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiNetworkConfigurationWithoutFineLocationPermissionTest.java b/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiNetworkConfigurationWithoutFineLocationPermissionTest.java index 9189e50..2aad6f5 100644 --- a/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiNetworkConfigurationWithoutFineLocationPermissionTest.java +++ b/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiNetworkConfigurationWithoutFineLocationPermissionTest.java
@@ -70,7 +70,7 @@ try { List<WifiConfiguration> configs = mWifiManager.getCallerConfiguredNetworks(); - assertWithMessage("configured networks").that(configs).hasSize(1); + assertWithMessage("configured networks").that(configs).isNotEmpty(); assertWithMessage("SSID of configured networks").that(configs.get(0).SSID) .isEqualTo('"' + NETWORK_SSID + '"'); } finally {