[jboss-svn-commits] JBL Code SVN: r37891 - labs/jbosstm/branches/JBOSSTS_4_16/atsintegration/tests/classes/com/arjuna/ats/jta/distributed.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Feb 17 12:55:55 EST 2012


Author: tomjenkinson
Date: 2012-02-17 12:55:54 -0500 (Fri, 17 Feb 2012)
New Revision: 37891

Modified:
   labs/jbosstm/branches/JBOSSTS_4_16/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java
Log:
added the timeout everywhere

Modified: labs/jbosstm/branches/JBOSSTS_4_16/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_16/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java	2012-02-17 17:43:24 UTC (rev 37890)
+++ labs/jbosstm/branches/JBOSSTS_4_16/atsintegration/tests/classes/com/arjuna/ats/jta/distributed/SimpleIsolatedServers.java	2012-02-17 17:55:54 UTC (rev 37891)
@@ -260,7 +260,7 @@
 		synchronized (phase2CommitAborted) {
 		    int waitedCount = 0;
 			while (phase2CommitAborted.getCount() < 2) {
-				phase2CommitAborted.wait(10000);
+				phase2CommitAborted.wait(5000);
 				waitedCount++;
 	            if (waitedCount > 2 && phase2CommitAborted.getCount() < 2) {
 	                fail("Servers were not aborted");
@@ -357,7 +357,7 @@
 		thread.start();
 		synchronized (phase2CommitAborted) {
 			if (phase2CommitAborted.getCount() < 1) {
-				phase2CommitAborted.wait();
+				phase2CommitAborted.wait(5000);
 			}
             if (phase2CommitAborted.getCount() < 1) {
                 fail("Servers were not aborted");
@@ -440,7 +440,7 @@
 		thread.start();
 		synchronized (phase2CommitAborted) {
 			if (phase2CommitAborted.getCount() < 1) {
-				phase2CommitAborted.wait();
+				phase2CommitAborted.wait(5000);
 			}
             if (phase2CommitAborted.getCount() < 1) {
                 fail("Servers were not aborted");
@@ -529,7 +529,7 @@
 		thread.start();
 		synchronized (phase2CommitAborted) {
 			if (phase2CommitAborted.getCount() < 1) {
-				phase2CommitAborted.wait();
+				phase2CommitAborted.wait(5000);
 			}
             if (phase2CommitAborted.getCount() < 1) {
                 fail("Servers were not aborted");
@@ -621,7 +621,7 @@
 		thread.start();
 		synchronized (phase2CommitAborted) {
 			if (phase2CommitAborted.getCount() < 1) {
-				phase2CommitAborted.wait();
+				phase2CommitAborted.wait(5000);
 			}
             if (phase2CommitAborted.getCount() < 1) {
                 fail("Servers were not aborted");
@@ -677,7 +677,7 @@
 		thread.start();
 		synchronized (phase2CommitAborted) {
 			if (phase2CommitAborted.getCount() < 1) {
-				phase2CommitAborted.wait();
+				phase2CommitAborted.wait(5000);
 			}
             if (phase2CommitAborted.getCount() < 1) {
                 fail("Servers were not aborted");



More information about the jboss-svn-commits mailing list