Fix failure BatteryInfoTest after string is update

Bug: 175277366
Test: make RunSettingsRoboTests -j40
Change-Id: I142ba70548c6dac9bfc33e0833c99da188817023
This commit is contained in:
ykhung
2020-12-11 09:13:01 +08:00
parent 2441bfc019
commit 351ffbeac9

View File

@@ -44,7 +44,6 @@ import com.android.settingslib.R;
import com.android.settingslib.fuelgauge.Estimate;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Answers;
@@ -248,7 +247,6 @@ public class BatteryInfoTest {
}
@Test
@Ignore
public void testGetBatteryInfo_chargingWithOverheated_updateChargeLabel() {
doReturn(TEST_CHARGE_TIME_REMAINING)
.when(mBatteryStats)
@@ -261,7 +259,7 @@ public class BatteryInfoTest {
false /* shortString */);
assertThat(info.isOverheated).isTrue();
assertThat(info.chargeLabel).isEqualTo("50% - Battery limited temporarily");
assertThat(info.chargeLabel).isEqualTo("50% - Optimizing for battery health");
}
// Make our battery stats return a sequence of battery events.