db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r727147 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/LiveLockTest.java
Date Tue, 16 Dec 2008 20:58:31 GMT
Author: kmarsden
Date: Tue Dec 16 12:58:30 2008
New Revision: 727147

URL: http://svn.apache.org/viewvc?rev=727147&view=rev
Log:
DERBY-3980 tests. Make changes for review comments for LiveLockTest


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/LiveLockTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/LiveLockTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/LiveLockTest.java?rev=727147&r1=727146&r2=727147&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/LiveLockTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/LiveLockTest.java
Tue Dec 16 12:58:30 2008
@@ -122,8 +122,7 @@
 
         try {
             if (delay > 0)
-                ;
-            Thread.sleep(delay);
+                Thread.sleep(delay);
             threadConnection = openDefaultConnection();
             Statement stmt = threadConnection.createStatement();
 
@@ -138,7 +137,7 @@
             // a lock timeout by then, so we will get a test failure.
             // We don't want it to run forever if live lock ever breaks.
             int tries = 0;
-            while (!isUpdateDone() && tries <= 10) {
+            while (!isUpdateDone()) {
                 ResultSet rs = stmt.executeQuery("select * from t");
                 while (rs.next())
                     ;



Mime
View raw message