diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index e46f8245c7..f973a37aa9 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -1159,7 +1159,8 @@ public final class LauncherInstrumentation { } final MotionEvent event = getMotionEvent(downTime, currentTime, action, point.x, point.y); - mInstrumentation.getUiAutomation().injectInputEvent(event, true); + assertTrue("injectInputEvent failed", + mInstrumentation.getUiAutomation().injectInputEvent(event, true)); event.recycle(); }