db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r439051 - /db/derby/code/branches/10.2/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
Date Thu, 31 Aug 2006 21:19:42 GMT
Author: mikem
Date: Thu Aug 31 14:19:42 2006
New Revision: 439051

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

merging change 439041 from trunk into 10.2 branch:

Increasing the maximum time to wait for the server to start up from 30 to 60
seconds.  The test checks in 500ms increments, so this change does not increase
the time for test to run for those who are already successfully running it.
So far this change has made this test pass in my environment, where previously
it failed consistently.  Since this test passes in the nightly full test runs
across a number of environments I assume the network server startup time is
somehow related to my particular machine (processor, memory, disk frag, firewal
, vpn, ...)

Others have seen this issue so I am committing to the codeline.  I have filed
a separate issue that work should be done to measure the performance of
network server startup as a targeted test (DERBY-1794).


Modified:
    db/derby/code/branches/10.2/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java

Modified: db/derby/code/branches/10.2/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.2/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java?rev=439051&r1=439050&r2=439051&view=diff
==============================================================================
--- db/derby/code/branches/10.2/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
(original)
+++ db/derby/code/branches/10.2/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testSecMec.java
Thu Aug 31 14:19:42 2006
@@ -238,9 +238,13 @@
 		            }
 		        }
 		        
-		        // Wait for the NetworkServer to start.
-		        if (!isServerStarted(networkServer, 60)) {
-                    System.out.println("FAIL: Server failed to respond to ping - ending test");
+		        // Wait for the NetworkServer to start.  As part of DERBY-1793
+                // changed the wait from 60 to 120, which increased the maximum
+                // to 120 pings with a wait of 500 ms between each ping.  
+		        if (!isServerStarted(networkServer, 120)) {
+                    System.out.println(
+                        "FAIL: Server failed to respond to ping - ending test");
+
                     break;
                 }
 		    }



Mime
View raw message