lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r611296 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestDeletionPolicy.java
Date Fri, 11 Jan 2008 20:46:07 GMT
Author: mikemccand
Date: Fri Jan 11 12:46:05 2008
New Revision: 611296

URL: http://svn.apache.org/viewvc?rev=611296&view=rev
Log:
fix off-by-one error

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestDeletionPolicy.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestDeletionPolicy.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestDeletionPolicy.java?rev=611296&r1=611295&r2=611296&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestDeletionPolicy.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestDeletionPolicy.java Fri Jan 11
12:46:05 2008
@@ -229,7 +229,7 @@
                                                          "",
                                                          gen);
         long modTime = dir.fileModified(fileName);
-        assertTrue("commit point was older than " + SECONDS + " seconds but did not get deleted",
lastDeleteTime - modTime < (SECONDS*1000));
+        assertTrue("commit point was older than " + SECONDS + " seconds (" + (lastDeleteTime
- modTime) + " msec) but did not get deleted", lastDeleteTime - modTime <= (SECONDS*1000));
       } catch (IOException e) {
         // OK
         break;



Mime
View raw message