Merge "Wait a while before canceling the notification" into stage-aosp-rvc-ts-dev
diff --git a/tests/app/src/android/app/cts/NotificationManagerTest.java b/tests/app/src/android/app/cts/NotificationManagerTest.java
index 90d64a1..029ed92 100644
--- a/tests/app/src/android/app/cts/NotificationManagerTest.java
+++ b/tests/app/src/android/app/cts/NotificationManagerTest.java
@@ -1729,6 +1729,10 @@
public void testCancel() throws Exception {
final int id = 9;
sendNotification(id, R.drawable.black);
+ // Wait for the notification posted not just enqueued
+ try {
+ Thread.sleep(500);
+ } catch(InterruptedException e) {}
mNotificationManager.cancel(id);
if (!checkNotificationExistence(id, /*shouldExist=*/ false)) {