db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r448133 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/timestampArith.java
Date Wed, 20 Sep 2006 09:17:39 GMT
Author: kahatlen
Date: Wed Sep 20 02:17:38 2006
New Revision: 448133

URL: http://svn.apache.org/viewvc?view=rev&rev=448133
Log:
DERBY-1869: lang/timestampArith.java fails if it starts right before midnight

If it is less than two minutes until midnight, wait until after
midnight before running the test.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/timestampArith.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/timestampArith.java?view=diff&rev=448133&r1=448132&r2=448133
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/timestampArith.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/timestampArith.java
Wed Sep 20 02:17:38 2006
@@ -80,7 +80,7 @@
         Calendar cal = Calendar.getInstance();
         // Make sure that we are not so close to midnight that TODAY might be yesterday before
         // we are finished using it.
-        while( cal.get( Calendar.HOUR) == 23 && cal.get( Calendar.MINUTE) == 58)
+        while( cal.get( Calendar.HOUR) == 23 && cal.get( Calendar.MINUTE) >= 58)
         {
             try
             {



Mime
View raw message