fix this assertion, so the test isnt sensitive to the speed of your computer

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@963909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-07-14 00:05:32 +00:00
parent dace72be35
commit e6cc82f52c
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class TestSolrDeletionPolicy1 extends SolrTestCaseJ4 {
IndexDeletionPolicyWrapper delPolicy = h.getCore().getDeletionPolicy();
addDocs();
Map<Long, IndexCommit> commits = delPolicy.getCommits();
assertEquals(((SolrDeletionPolicy) (delPolicy.getWrappedDeletionPolicy())).getMaxOptimizedCommitsToKeep(), commits.size());
assertTrue(commits.size() <= ((SolrDeletionPolicy) (delPolicy.getWrappedDeletionPolicy())).getMaxOptimizedCommitsToKeep());
}
@Test