diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java index 54a96cd767150..83a2883c30992 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java @@ -184,7 +184,9 @@ public class NotificationInflaterTest extends SysuiTestCase { countDownLatch.await(); } + /* Cancelling requires us to be on the UI thread otherwise we might have a race */ @Test + @UiThreadTest public void testSupersedesExistingTask() throws Exception { mNotificationInflater.inflateNotificationViews(); mNotificationInflater.setIsLowPriority(true);