activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1383308 - in /activemq/trunk/activemq-core/src/test/java/org/apache/activemq: broker/scheduler/JobSchedulerTest.java security/SecurityJMXTest.java
Date Tue, 11 Sep 2012 09:21:36 GMT
Author: davsclaus
Date: Tue Sep 11 09:21:36 2012
New Revision: 1383308

URL: http://svn.apache.org/viewvc?rev=1383308&view=rev
Log:
Fixing test on CI servers.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerTest.java
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/SecurityJMXTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerTest.java?rev=1383308&r1=1383307&r2=1383308&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerTest.java
Tue Sep 11 09:21:36 2012
@@ -78,7 +78,8 @@ public class JobSchedulerTest {
         String str = new String("test1");
         scheduler.schedule("id:1", new ByteSequence(str.getBytes()), cronTab, 0, 0, 0);
 
-        assertTrue(latch.await(60, TimeUnit.SECONDS));
+        // need a little slack so go over 60 seconds
+        assertTrue(latch.await(70, TimeUnit.SECONDS));
         assertEquals(0, latch.getCount());
     }
 

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/SecurityJMXTest.java?rev=1383308&r1=1383307&r2=1383308&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
Tue Sep 11 09:21:36 2012
@@ -50,7 +50,8 @@ public class SecurityJMXTest extends Tes
 	public void setUp() throws Exception {
 		broker = createBroker();
 		broker.waitUntilStarted();
-		Thread.sleep(500);
+
+		Thread.sleep(1000);
 	}
 
 	public void tearDown() throws Exception {
@@ -81,7 +82,7 @@ public class SecurityJMXTest extends Tes
         headers.put("JMSDeliveryMode", Integer.toString(DeliveryMode.PERSISTENT));
         String msgId = queueMbean.sendTextMessage(headers, "test", "system", "manager");
         // allow message to expire on the queue
-        TimeUnit.SECONDS.sleep(3);
+        TimeUnit.SECONDS.sleep(4);
         
         Connection c = new ActiveMQConnectionFactory("vm://localhost").createConnection("system",
"manager");
         c.start();



Mime
View raw message