summaryrefslogtreecommitdiff
path: root/tests/PackageWatchdog/src
diff options
context:
space:
mode:
authorZimuzo <zezeozue@google.com>2019-02-28 10:44:29 +0000
committerZimuzo <zezeozue@google.com>2019-03-06 14:05:09 +0000
commitef65fb8424a87630b53fbe0ba37f867ba14da3d6 (patch)
tree3e5fd9b9611d1c2b442d58a16286e5786aa320ed /tests/PackageWatchdog/src
parent46835775cf518ee44408e040353da6e828a6fbce (diff)
Fail package if explicit health check does not pass
As part of extending PackageWatchdog with explicit health check support in Ib4322c327bcb00ca9a3fbdc83579e7b5f2fd633b. Trigger the observers #execute method if a package never passed explicit health check on expiry. Bug: 120598832 Test: atest PackageWatchdogTest Change-Id: I8e916a6ca115d3883fe29f66456da36cd0ed09fb
Diffstat (limited to 'tests/PackageWatchdog/src')
-rw-r--r--tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java b/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java
index 44bd75beb143..d0c261279c9d 100644
--- a/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java
+++ b/tests/PackageWatchdog/src/com/android/server/PackageWatchdogTest.java
@@ -31,7 +31,6 @@ import com.android.server.PackageWatchdog.PackageHealthObserver;
import com.android.server.PackageWatchdog.PackageHealthObserverImpact;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
@@ -442,12 +441,9 @@ public class PackageWatchdogTest {
assertEquals(0, observer2.mFailedPackages.size());
}
- // TODO: Unignore test after package failure is triggered on observer expiry with failing
- // explicit health check
/**
* Test explicit health check status determines package failure or success on expiry
*/
- @Ignore
@Test
public void testPackageFailureExplicitHealthCheck() throws Exception {
PackageWatchdog watchdog = createWatchdog();