activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [2/2] git commit: tidy up intermittent failure - BrokerViewSlowStoreStartupTest
Date Tue, 01 Oct 2013 14:22:37 GMT
tidy up intermittent failure - BrokerViewSlowStoreStartupTest


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

Branch: refs/heads/trunk
Commit: f609c50fd0f7bf74602d79043bbd8d890c4c0a5d
Parents: 9883ecf
Author: gtully <gary.tully@gmail.com>
Authored: Tue Oct 1 14:11:27 2013 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Tue Oct 1 15:21:21 2013 +0100

----------------------------------------------------------------------
 .../activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/f609c50f/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java
index c373fe7..6910bed 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/BrokerViewSlowStoreStartupTest.java
@@ -80,6 +80,7 @@ public class BrokerViewSlowStoreStartupTest {
                 try {
                     broker.start();
                 } catch(Exception e) {
+                    e.printStackTrace();
                 }
             }
         });
@@ -111,7 +112,7 @@ public class BrokerViewSlowStoreStartupTest {
             }
         }));
 
-        BrokerView view = broker.getAdminView();
+        final BrokerView view = broker.getAdminView();
 
         try {
             view.getBrokerName();
@@ -326,6 +327,12 @@ public class BrokerViewSlowStoreStartupTest {
         holdStoreStart.countDown();
         startThread.join();
 
+        Wait.waitFor(new Wait.Condition() {
+            @Override
+            public boolean isSatisified() throws Exception {
+                return view.getBroker() != null;
+            }
+        });
         assertNotNull(view.getBroker());
 
         try {


Mime
View raw message