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

Commit 75a6e70a authored by ykhung's avatar ykhung
Browse files

Fix the broken test on com.android.settingslib.utils.PowerUtilTest

Test: make -j56 RunSettingsLibRoboTests ROBOTEST_FILTER="com.android.settingslib.utils"
Bug: 222233536
Change-Id: I245a7b240eb125800c64793add401c86f3c2e6e1
parent 60b397e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -122,9 +122,9 @@ public class PowerUtilTest {
                true /* basedOnUsage */);

        // additional battery percentage in this string
        assertThat(info).isEqualTo("Phone may shut down soon (10%)");
        assertThat(info.contains("may shut down soon (10%)")).isTrue();
        // shortened string should not have percentage
        assertThat(info2).isEqualTo("Phone may shut down soon");
        assertThat(info2.contains("may shut down soon")).isTrue();
    }

    @Test