activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [2/3] activemq git commit: ci disks seem to be really slow on force, increasing timeout and decreasing load on this test
Date Wed, 17 Jun 2015 13:42:00 GMT
ci disks seem to be really slow on force, increasing timeout and decreasing load on this test


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/6cf9a8a9
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/6cf9a8a9
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/6cf9a8a9

Branch: refs/heads/master
Commit: 6cf9a8a9a56963ebe87463c1115fcb018711d82f
Parents: 4719114
Author: gtully <gary.tully@gmail.com>
Authored: Wed Jun 17 14:21:18 2015 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Wed Jun 17 14:30:25 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/activemq/bugs/AMQ2149Test.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/6cf9a8a9/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
index b2eba61..bc80ea9 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
@@ -364,7 +364,7 @@ public class AMQ2149Test {
         verifyStats(false);
     }
 
-    @Test(timeout = 5 * 60 * 1000)
+    @Test(timeout = 10 * 60 * 1000)
     public void testOrderWithRestart() throws Exception {
         createBroker(new Configurer() {
             public void configure(BrokerService broker) throws Exception {
@@ -387,7 +387,7 @@ public class AMQ2149Test {
         verifyStats(true);
     }
 
-    @Test(timeout = 5 * 60 * 1000)
+    @Test(timeout = 10 * 60 * 1000)
     public void testTopicOrderWithRestart() throws Exception {
         createBroker(new Configurer() {
             public void configure(BrokerService broker) throws Exception {
@@ -407,18 +407,18 @@ public class AMQ2149Test {
         verifyStats(true);
     }
 
-    @Test(timeout = 5 * 60 * 1000)
+    @Test(timeout = 10 * 60 * 1000)
     public void testQueueTransactionalOrderWithRestart() throws Exception {
         doTestTransactionalOrderWithRestart(ActiveMQDestination.QUEUE_TYPE);
     }
 
-    @Test(timeout = 5 * 60 * 1000)
+    @Test(timeout = 10 * 60 * 1000)
     public void testTopicTransactionalOrderWithRestart() throws Exception {
         doTestTransactionalOrderWithRestart(ActiveMQDestination.TOPIC_TYPE);
     }
     
     public void doTestTransactionalOrderWithRestart(byte destinationType) throws Exception
{
-        numtoSend = 10000;
+        numtoSend = 5000;
         sleepBetweenSend = 3;
         brokerStopPeriod = 10 * 1000;
               
@@ -519,10 +519,10 @@ public class AMQ2149Test {
             threads.add(thread);
         }
         
-        final long expiry = System.currentTimeMillis() + 1000 * 60 * 4;
+        final long expiry = System.currentTimeMillis() + 1000 * 60 * 10;
         while(!threads.isEmpty() && exceptions.isEmpty() && System.currentTimeMillis()
< expiry) {
             Thread sendThread = threads.firstElement();
-            sendThread.join(1000*30);
+            sendThread.join(1000*60*10);
             if (!sendThread.isAlive()) {
                 threads.remove(sendThread);
             } else {


Mime
View raw message