commit | 44f483e42807f463d57bdab09aac031c6c3ee115 | [log] [tgz] |
---|---|---|
author | Joanne Chung <joannechung@google.com> | Tue Jul 04 09:39:38 2023 +0000 |
committer | Joanne Chung <joannechung@google.com> | Thu Jul 06 01:54:32 2023 +0000 |
tree | ee4b1e0cef14c4e25358205ac4f65332017088a3 | |
parent | b93f0585abe0009dfa0c62cebbab77301cb95437 [diff] |
Use mockito.after() instead of Thread.sleep Because the change moves the call to hander, the test needs to wait for a timeout to make sure the call is called. Instead of using the Thread.sleep(), it's better to use mockito.after(). Bug: 29385425 Test: atest PackageMonitorCallbackHelperTest Change-Id: Id6ac8d6cdbe28f31bae0837414c6970f1df6f608