[mod_cluster-commits] mod_cluster SVN: r817 - trunk/test/java/src/test/java/org/jboss/mod_cluster.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Apr 26 07:52:31 EDT 2012
Author: jfrederic.clere at jboss.com
Date: 2012-04-26 07:52:30 -0400 (Thu, 26 Apr 2012)
New Revision: 817
Modified:
trunk/test/java/src/test/java/org/jboss/mod_cluster/TestChunkedMCPM.java
Log:
Make sure we wait until we get something.
Modified: trunk/test/java/src/test/java/org/jboss/mod_cluster/TestChunkedMCPM.java
===================================================================
--- trunk/test/java/src/test/java/org/jboss/mod_cluster/TestChunkedMCPM.java 2012-04-26 09:28:30 UTC (rev 816)
+++ trunk/test/java/src/test/java/org/jboss/mod_cluster/TestChunkedMCPM.java 2012-04-26 11:52:30 UTC (rev 817)
@@ -87,7 +87,19 @@
}
// Read the result via INFO.
- String result = Maintest.getProxyInfo(lifecycle);
+ String result = null;
+ int count = 0;
+ while (count < 20) {
+ result = Maintest.getProxyInfo(lifecycle);
+ if (result != null)
+ break;
+ count++;
+ try {
+ Thread.sleep(3000);
+ } catch (InterruptedException ex) {
+ ex.printStackTrace();
+ }
+ }
ArrayList nodes = new ArrayList();
if (result != null) {
More information about the mod_cluster-commits
mailing list