db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1229835 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthProcs.java
Date Wed, 11 Jan 2012 00:49:51 GMT
Author: mikem
Date: Wed Jan 11 00:49:51 2012
New Revision: 1229835

URL: http://svn.apache.org/viewvc?rev=1229835&view=rev
Log:
DERBY-5559 AssertFailures (7, or 8) with ibm 1.6 and 1.5 on Windows XP in lang.NativeAuthProcs
fixture testAll

Adding longer waits and some additional waits to fix problems on my laptop with
this test.  Before this change the test would expect the timestamp to have
moved forward after some password manipulation operations, but instead the
timestamp would be the same as before.  I believe this is just a problem with
the known issue of JVM/machine caching of time, and not an actual problem
with the password mechanism.



Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthProcs.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthProcs.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthProcs.java?rev=1229835&r1=1229834&r2=1229835&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthProcs.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/NativeAuthProcs.java
Wed Jan 11 00:49:51 2012
@@ -351,6 +351,9 @@ public class NativeAuthProcs extends Gen
 
         lastModified = vetResetPassword( dboConnection, dboConnection, lastModified, true
);
         lastModified = vetResetPassword( dboConnection, janetConnection, lastModified, !authorizationIsOn()
);
+
+        // pause so that when we check timestamps, we will see a change
+        Thread.sleep( 10L );
                  
         // Make sure that we can reset a password in the approved fashion.
         char[]  password = new char[] { 'r','u','t','h','p','a','s','s','w','o','r','d' };
@@ -376,7 +379,7 @@ public class NativeAuthProcs extends Gen
         throws Exception
     {
         // pause so that when we check timestamps, we will see a change
-        Thread.sleep( 1L );
+        Thread.sleep( 10L );
         
         vetExecution
             (
@@ -438,7 +441,7 @@ public class NativeAuthProcs extends Gen
         throws Exception
     {
         // pause so that when we check timestamps, we will see a change
-        Thread.sleep( 1L );
+        Thread.sleep( 10L );
         
         goodStatement( conn, "call syscs_util.syscs_modify_password( 'newpassword' )" );
                        
@@ -449,6 +452,9 @@ public class NativeAuthProcs extends Gen
             "; oldLastModified  = "  + oldLastModified,
             newLastModified > oldLastModified);
 
+        // pause so that when we check timestamps, we will see a change
+        Thread.sleep( 10L );
+
         // Make sure that we can modify a password in the approved fashion.
         char[]  password = new char[] { 'r','u','t','h','p','a','s','s','w','o','r','d' };
         CharArrayReader reader = new CharArrayReader( password );



Mime
View raw message