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

Commit 7366d717 authored by Wesley.CW Wang's avatar Wesley.CW Wang Committed by Wesley Wang
Browse files

Fix BatteryInfo test fail

 - rollback part of ag/14063746

Bug: 183689347
Test: make RunSettingsRoboTests
Change-Id: I11129713dac2584c54890f65af53ce76b0672b8d
parent 69022ccc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -150,9 +150,10 @@ public class BatteryInfoTest {
                mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000,
                true /* shortString */);

        // Both long and short strings should not have extra text
        assertThat(info.remainingLabel.toString()).doesNotContain(ENHANCED_STRING_SUFFIX);
        // We only add special mention for the long string
        assertThat(info.remainingLabel.toString()).contains(ENHANCED_STRING_SUFFIX);
        assertThat(info.suggestionLabel).contains(BATTERY_RUN_OUT_PREFIX);
        // shortened string should not have extra text
        assertThat(info2.remainingLabel.toString()).doesNotContain(ENHANCED_STRING_SUFFIX);
        assertThat(info2.suggestionLabel).contains(BATTERY_RUN_OUT_PREFIX);
    }