activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject git commit: enable frame tracing in few more test cases
Date Mon, 10 Feb 2014 20:27:41 GMT
Updated Branches:
  refs/heads/trunk cdfb56245 -> 301866d15


enable frame tracing in few more test cases

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

Branch: refs/heads/trunk
Commit: 301866d151aaea008b20be92605c82a9314c756e
Parents: cdfb562
Author: Timothy Bish <tabish121@gmai.com>
Authored: Mon Feb 10 15:27:35 2014 -0500
Committer: Timothy Bish <tabish121@gmai.com>
Committed: Mon Feb 10 15:27:35 2014 -0500

----------------------------------------------------------------------
 .../java/org/apache/activemq/transport/amqp/JMSClientTest.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/301866d1/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
----------------------------------------------------------------------
diff --git a/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
b/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
index e9c07ad..fc2bfd1 100644
--- a/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
+++ b/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
@@ -662,6 +662,7 @@ public class JMSClientTest extends AmqpTestSupport {
 
     @Test(timeout=30000)
     public void testExecptionListenerCalledOnBrokerStop() throws Exception {
+        ActiveMQAdmin.enableJMSFrameTracing();
 
         Connection connection = createConnection();
         Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
@@ -694,8 +695,9 @@ public class JMSClientTest extends AmqpTestSupport {
         assertTrue("No exception listener event fired.", called.await(15, TimeUnit.SECONDS));
     }
 
-    @Test(timeout=40000)
+    @Test(timeout=30000)
     public void testSessionTransactedCommit() throws JMSException, InterruptedException {
+        ActiveMQAdmin.enableJMSFrameTracing();
 
         Connection connection = createConnection();
         Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
@@ -742,7 +744,7 @@ public class JMSClientTest extends AmqpTestSupport {
 
     private Connection createConnection(String clientId, boolean syncPublish) throws JMSException
{
 
-        final ConnectionFactoryImpl factory = new ConnectionFactoryImpl("localhost", port,
"admin", "password");
+        final ConnectionFactoryImpl factory = new ConnectionFactoryImpl("localhost", nioPort,
"admin", "password");
 
         factory.setSyncPublish(syncPublish);
         factory.setTopicPrefix("topic://");


Mime
View raw message