| commit | a68b8d7237b2ffc9a22cbf98520c62c7e5a8be35 | [log] [tgz] |
|---|---|---|
| author | Mady Mellor <madym@google.com> | Thu Jul 11 14:44:33 2019 -0700 |
| committer | Mady Mellor <madym@google.com> | Thu Jul 11 14:44:33 2019 -0700 |
| tree | 8baa3d87d3908d6c40335339d2d0e8e7f230a748 | |
| parent | 894a36027a54b1e3ed7ddef5165c4c4e7c1bd659 [diff] |
Make the tests permissive for Q Add delay for testNotificationManagerBubblePolicy_flagForAppForeground Test: atest NotificationManagerTest Bug:136786013 Change-Id: Id647cb767fd7ffd13bd63a8e2ea2b309a1be8637
diff --git a/tests/app/src/android/app/cts/NotificationManagerTest.java b/tests/app/src/android/app/cts/NotificationManagerTest.java index 697fe18..0c0b204 100644 --- a/tests/app/src/android/app/cts/NotificationManagerTest.java +++ b/tests/app/src/android/app/cts/NotificationManagerTest.java
@@ -342,6 +342,11 @@ private void cancelAndPoll(int id) { mNotificationManager.cancel(id); + try { + Thread.sleep(500); + } catch (InterruptedException ex) { + // pass + } if (!checkNotificationExistence(id, /*shouldExist=*/ false)) { fail("canceled notification was still alive, id=" + id); }