From df450cc9f62bc8025cb0301c05203f2692f63dc9 Mon Sep 17 00:00:00 2001 From: lesl Date: Tue, 11 Feb 2020 11:18:00 +0800 Subject: [PATCH] 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 --- .../wifi/tether/WifiTetherApBandPreferenceControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 32cec6839a2..e639b679787 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 @@ public class WifiTetherApBandPreferenceControllerTest { // 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);