mirror of https://github.com/apache/lucene.git
fix off-by-one error
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@611296 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
da6c43f5d7
commit
8068979bec
|
@ -229,7 +229,7 @@ public class TestDeletionPolicy extends LuceneTestCase
|
|||
"",
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue