From cb40bd29477d7e7c8df4836f05e6bafc7674fb83 Mon Sep 17 00:00:00 2001 From: "Wesley.CW Wang" Date: Mon, 7 Jun 2021 14:59:13 +0800 Subject: [PATCH] Fix AppBatteryPreferenceControllerTest test fail Bug: 190187197 Bug: 190239610 Test: make RunSettingsRoboTests Change-Id: I113eb738003531c67acd72aa8f597e9c34ca2cc9 --- .../appinfo/AppBatteryPreferenceControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/robotests/src/com/android/settings/applications/appinfo/AppBatteryPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/applications/appinfo/AppBatteryPreferenceControllerTest.java index 73e9bed3a61..21159475a1a 100644 --- a/tests/robotests/src/com/android/settings/applications/appinfo/AppBatteryPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/applications/appinfo/AppBatteryPreferenceControllerTest.java @@ -134,7 +134,7 @@ public class AppBatteryPreferenceControllerTest { mController.updateBattery(); assertThat(mBatteryPreference.getSummary()) - .isEqualTo("No battery use since last full charge"); + .isEqualTo("No battery use for past 24 hours"); } @Test @@ -147,7 +147,7 @@ public class AppBatteryPreferenceControllerTest { mController.updateBattery(); - assertThat(mBatteryPreference.getSummary()).isEqualTo("60% use since last full charge"); + assertThat(mBatteryPreference.getSummary()).isEqualTo("60% use for past 24 hours"); } @Test