db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vnaraya...@apache.org
Subject svn commit: r664639 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Date Mon, 09 Jun 2008 07:05:29 GMT
Author: vnarayanan
Date: Mon Jun  9 00:05:28 2008
New Revision: 664639

URL: http://svn.apache.org/viewvc?rev=664639&view=rev
Log:
DERBY-3632

The Patch increases the timeout for starting the master and
slave servers and the timeout for a successfull "startmaster=true"
in the replication tests, Now allows up to 120s before giving up.

Patch Contributor: Ole Solberg

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java?rev=664639&r1=664638&r2=664639&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Mon Jun  9 00:05:28 2008
@@ -252,7 +252,7 @@
                 }
             }
             
-            assertTrue("Failover did not succeed.", count++ < 100); // 100*200ms = 20s.
+            assertTrue("Failover did not succeed.", count++ < 600); // 600*200ms = 120s
= 2mins.
         }
     }
     
@@ -908,12 +908,13 @@
                         {
                             util.DEBUG("Master already started?");
                         }
-                        util.DEBUG("Got: "+state+" Expected "+expectedState);
+                        util.DEBUG("startMaster_direct Got: "
+                                +state+" Expected "+expectedState);
                         throw se;
                     }
                 }
 
-                this.assertTrue("startMaster did not succeed.", count++ < 100); // 100*100ms
= 10s.
+                assertTrue("startMaster did not succeed.", count++ < 1200); // 1200*100ms
= 120s = 2mins.
             }
             util.DEBUG("startMaster_direct exit.");
     }



Mime
View raw message