db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r771180 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
Date Mon, 04 May 2009 05:25:36 GMT
Author: kristwaa
Date: Mon May  4 05:25:35 2009
New Revision: 771180

URL: http://svn.apache.org/viewvc?rev=771180&view=rev
Log:
DERBY-4085: Improve testing of the in-memory back end.
Fixed the seed used by MogTest, due to instability in the test.
This is a temporary stabilization, the root cause should be identified.

Patch file: derby-4085-6a-fixed_seed.diff

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java?rev=771180&r1=771179&r2=771180&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
Mon May  4 05:25:35 2009
@@ -89,7 +89,10 @@
           throws SQLException {
 
     // Initialize test objects.
-    final long _seed = System.currentTimeMillis();
+    // NOTE: Due to instability in the test, the seed has been fixed.
+    //       See DERBY-4209 (and DERBY-4085).
+    //final long _seed = System.currentTimeMillis();
+    final long _seed = 1241411544935L;
     java.util.Random rng = new java.util.Random(_seed);
     /** MOG generator being tested */
     GenMog genMog = new GenMog(rng);



Mime
View raw message