db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1405653 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/ExceptionMapperTest.java
Date Sun, 04 Nov 2012 22:19:50 GMT
Author: tfischer
Date: Sun Nov  4 22:19:50 2012
New Revision: 1405653

URL: http://svn.apache.org/viewvc?rev=1405653&view=rev
Log:
allow for fast databases :-)

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/ExceptionMapperTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/ExceptionMapperTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/ExceptionMapperTest.java?rev=1405653&r1=1405652&r2=1405653&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/ExceptionMapperTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/util/ExceptionMapperTest.java
Sun Nov  4 22:19:50 2012
@@ -204,7 +204,8 @@ public class ExceptionMapperTest extends
             saveThreadTransaction1.start();
 
             long startTime = System.currentTimeMillis();
-            while (!author2.isSaving() && author2.isModified())
+            while (!author2.isSaving() && author2.isModified()
+                    && saveThreadTransaction1.isAlive())
             {
                 Thread.sleep(SLEEP_TIME);
                 if (System.currentTimeMillis() > startTime + TIMEOUT)
@@ -223,7 +224,8 @@ public class ExceptionMapperTest extends
             saveThreadTransaction2.start();
 
             startTime = System.currentTimeMillis();
-            while (!author1.isSaving() && author1.isModified())
+            while (!author1.isSaving() && author1.isModified()
+                    && saveThreadTransaction2.isAlive())
             {
                 Thread.sleep(SLEEP_TIME);
                 if (System.currentTimeMillis() > startTime + TIMEOUT)



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message