diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java index 219164ab93..ed3c92c184 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java @@ -16,13 +16,14 @@ */ package org.apache.activemq.broker.scheduler; -import java.io.File; -import java.util.ArrayList; -import java.util.List; import junit.framework.TestCase; import org.apache.activemq.util.IOHelper; import org.apache.kahadb.util.ByteSequence; +import java.io.File; +import java.util.ArrayList; +import java.util.List; + public class JobSchedulerStoreTest extends TestCase { public void testRestart() throws Exception { @@ -40,9 +41,9 @@ public class JobSchedulerStoreTest extends TestCase { } JobScheduler js = store.getJobScheduler("test"); int count = 0; - long startTime = 10000; + long startTime = 10 * 60 * 1000; long period = startTime; for (ByteSequence job:list) { - js.schedule("id:"+(count++), job,"",startTime,10000,-1); + js.schedule("id:"+(count++), job, "", startTime, period, -1); } Listtest = js.getAllJobs(); assertEquals(list.size(),test.size());