activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1327457 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
Date Wed, 18 Apr 2012 11:47:25 GMT
Author: dejanb
Date: Wed Apr 18 11:47:25 2012
New Revision: 1327457

URL: http://svn.apache.org/viewvc?rev=1327457&view=rev
Log:
JobSchedulerStoreTest - fix test, don't allow jobs to start scheduling on slow machines

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java?rev=1327457&r1=1327456&r2=1327457&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
Wed Apr 18 11:47:25 2012
@@ -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 exten
         }
 		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);
 		}
 		List<Job>test = js.getAllJobs();
 		assertEquals(list.size(),test.size());



Mime
View raw message