mirror of https://github.com/apache/lucene.git
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:
parent
dace72be35
commit
e6cc82f52c
|
@ -105,7 +105,7 @@ public class TestSolrDeletionPolicy1 extends SolrTestCaseJ4 {
|
||||||
IndexDeletionPolicyWrapper delPolicy = h.getCore().getDeletionPolicy();
|
IndexDeletionPolicyWrapper delPolicy = h.getCore().getDeletionPolicy();
|
||||||
addDocs();
|
addDocs();
|
||||||
Map<Long, IndexCommit> commits = delPolicy.getCommits();
|
Map<Long, IndexCommit> commits = delPolicy.getCommits();
|
||||||
assertEquals(((SolrDeletionPolicy) (delPolicy.getWrappedDeletionPolicy())).getMaxOptimizedCommitsToKeep(), commits.size());
|
assertTrue(commits.size() <= ((SolrDeletionPolicy) (delPolicy.getWrappedDeletionPolicy())).getMaxOptimizedCommitsToKeep());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue