summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/health/rules/src/android/platform/test/rule/QuickstepPressureRule.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/health/rules/src/android/platform/test/rule/QuickstepPressureRule.java b/libraries/health/rules/src/android/platform/test/rule/QuickstepPressureRule.java
index 26aae2726..a1ba34be9 100644
--- a/libraries/health/rules/src/android/platform/test/rule/QuickstepPressureRule.java
+++ b/libraries/health/rules/src/android/platform/test/rule/QuickstepPressureRule.java
@@ -55,7 +55,8 @@ public class QuickstepPressureRule extends TestWatcher {
// Open the application and ensure it reaches the foreground.
getContext().startActivity(getContext().getPackageManager().getLaunchIntentForPackage(pkg));
if (!getUiDevice().wait(Until.hasObject(By.pkg(pkg).depth(0)), UI_RESPONSE_TIMEOUT_MSECS)) {
- throw new RuntimeException("Application not found in foreground.");
+ throw new RuntimeException(
+ String.format("Application not found in foreground (package = %s).", pkg));
}
// Ensure the app doesn't immediately crash in the foreground.
SystemClock.sleep(MIN_CRASH_WAIT_TIMEOUT);