Merge "Fix the broken test on com.android.settingslib.utils.PowerUtilTest" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-02 19:29:44 +00:00
committed by Android (Google) Code Review

View File

@@ -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