commit | 131d38bdea87bbfd0dc44665db863924ab1af9c1 | [log] [tgz] |
---|---|---|
author | Evan Laird <evanlaird@google.com> | Wed Jun 24 23:40:30 2020 -0400 |
committer | Evan Laird <evanlaird@google.com> | Thu Jun 25 04:29:53 2020 +0000 |
tree | 551d85f0369152989ad33789ee27cb646de44ae4 | |
parent | 1f7c4db51364a3f1185937eb3cb8a99ecb03240e [diff] |
Sleep in between calls to NoMan service in test NotificationManagerService has a non-mockable relationship to System.currentTimeMillis and this test assumes that calls into the service will not happen in the same millisecond. The fix here is to sleep for 1ms in between calls to ensure that the clock advances. Test: atest --rerun-until-failure 100 NotificationManagerServiceTest Bug: 155331470 Change-Id: Ica6b26a3d72295b0be52c6b1579dde30447ddeaf