Remove periodic job test
We currently don't have the infrastructure
to simulate time. All CTS tests need to pass
for DP2 (by 3/23). So I'm removing this test
for the time being. Some host side testing
would be needed to test periodic jobs.
Bug: 26638968
Change-Id: Ie5be5f75606790f709dab247e449ce5c46c4bbfe
diff --git a/tests/JobScheduler/src/android/jobscheduler/cts/TimingConstraintsTest.java b/tests/JobScheduler/src/android/jobscheduler/cts/TimingConstraintsTest.java
index 40b67c8..62c7124 100644
--- a/tests/JobScheduler/src/android/jobscheduler/cts/TimingConstraintsTest.java
+++ b/tests/JobScheduler/src/android/jobscheduler/cts/TimingConstraintsTest.java
@@ -41,18 +41,6 @@
assertTrue("Timed out waiting for override deadline.", executed);
}
- public void testSchedulePeriodic() throws Exception {
- JobInfo periodicJob =
- new JobInfo.Builder(TIMING_JOB_ID, kJobServiceComponent)
- .setPeriodic(5000L) // 5 second period.
- .build();
-
- kTestEnvironment.setExpectedExecutions(3);
- mJobScheduler.schedule(periodicJob);
- final boolean countedDown = kTestEnvironment.awaitExecution();
- assertTrue("Timed out waiting for periodic jobs to execute", countedDown);
- }
-
public void testCancel() throws Exception {
JobInfo cancelJob = new JobInfo.Builder(CANCEL_JOB_ID, kJobServiceComponent)
.setMinimumLatency(5000L) // make sure it doesn't actually run immediately
@@ -106,4 +94,4 @@
" JobParameters#isOverrideDeadlineExpired=false",
kTestEnvironment.getLastJobParameters().isOverrideDeadlineExpired());
}
-}
\ No newline at end of file
+}