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:
Michael McCandless 2008-01-11 20:46:05 +00:00
parent da6c43f5d7
commit 8068979bec
1 changed files with 1 additions and 1 deletions

View File

@ -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;