commit | df450cc9f62bc8025cb0301c05203f2692f63dc9 | [log] [tgz] |
---|---|---|
author | lesl <lesl@google.com> | Tue Feb 11 11:18:00 2020 +0800 |
committer | lesl <lesl@google.com> | Tue Feb 11 11:18:21 2020 +0800 |
tree | ed5b4f5f7a5478825fd2296c8d1de8be14b989a0 | |
parent | 23b7ca557662ec1e5a61df846fb4ebfbfd585671 [diff] |
tether setting: fix test error: updateDisplay_shouldUpdateValue ag/10257734 change band convert to general design. Fix test to match new design Bug: 149251992 Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest Change-Id: I6f09d9d4f440515fb51a237d966327e232fe5928
diff --git a/tests/robotests/src/com/android/settings/wifi/tether/WifiTetherApBandPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/wifi/tether/WifiTetherApBandPreferenceControllerTest.java index 32cec68..e639b67 100644 --- a/tests/robotests/src/com/android/settings/wifi/tether/WifiTetherApBandPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/wifi/tether/WifiTetherApBandPreferenceControllerTest.java
@@ -160,7 +160,7 @@ // Set controller band index to 5GHz and verify is set. mController.displayPreference(mScreen); mController.onPreferenceChange(mPreference, VAL_5GHZ_STR); - assertThat(mController.getBandIndex()).isEqualTo(VAL_5GHZ_INT); + assertThat(mController.getBandIndex()).isEqualTo(VAL_2_5_GHZ_INT); // Disable 5Ghz band when(mWifiManager.is5GHzBandSupported()).thenReturn(false);