Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b87e5455 authored by clownshen's avatar clownshen
Browse files

Fix WifiDetailPreferenceControllerTest new test case failure

Bug: 130370187
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Change-Id: I314702be14db4e853412874c123e0a4b229849a2
parent dd310fa8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1653,7 +1653,7 @@ public class WifiDetailPreferenceControllerTest {
        displayAndResume();
        displayAndResume();


        // change as not in range
        // change as not in range
        when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(false);
        when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(false);
        boolean changed = mController.updateAccessPoint();
        boolean changed = mController.updateAccessPoint();


        assertThat(changed).isTrue();
        assertThat(changed).isTrue();
@@ -1666,7 +1666,7 @@ public class WifiDetailPreferenceControllerTest {
        displayAndResume();
        displayAndResume();


        // change as in range
        // change as in range
        when(mockAccessPoint.matches(any(WifiConfiguration.class))).thenReturn(true);
        when(mockAccessPoint.matches(any(AccessPoint.class))).thenReturn(true);
        boolean changed = mController.updateAccessPoint();
        boolean changed = mController.updateAccessPoint();


        assertThat(changed).isTrue();
        assertThat(changed).isTrue();