commit | 007e9df3e12299ff003bae9fd51812ea4eb70b13 | [log] [tgz] |
---|---|---|
author | Gavin Corkery <gavincorkery@google.com> | Tue Mar 24 10:43:45 2020 +0000 |
committer | Gavin Corkery <gavincorkery@google.com> | Tue Mar 24 23:46:29 2020 +0000 |
tree | 428a6ea8dbebeda8c0ffb6d66a6c673f1b2094f9 | |
parent | 887941cbc8384e5d1df077292a98f08f1b54d0d4 [diff] |
Preserve failure history when calling startObservingHealth Instead of always creating a new MonitoredPackage every time PackageWatchdog#startObservingHealth is called, just update the duration of an existing MonitoredPackage if one exists. This means that the failure history will be preserved. Test: atest PackageWatchdogTest Bug: 150114865 Change-Id: I6d6e3e0e893a603fda50df833bc5b6ce1757b6ec