Merge "Fix calculateSizeBytes"

This commit is contained in:
Chaohui Wang
2023-02-09 03:37:51 +00:00
committed by Android (Google) Code Review

View File

@@ -89,7 +89,7 @@ class AppStoragePreferenceTest {
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app)) composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
.assertIsDisplayed() .assertIsDisplayed()
composeTestRule.waitUntilExists(hasText("123 B used in internal storage")) composeTestRule.waitUntilExists(hasText("120 B used in internal storage"))
} }
@Test @Test
@@ -104,7 +104,7 @@ class AppStoragePreferenceTest {
composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app)) composeTestRule.onNodeWithText(context.getString(R.string.storage_settings_for_app))
.assertIsDisplayed() .assertIsDisplayed()
composeTestRule.waitUntilExists(hasText("123 B used in external storage")) composeTestRule.waitUntilExists(hasText("120 B used in external storage"))
} }
private fun setContent(app: ApplicationInfo) { private fun setContent(app: ApplicationInfo) {