Apache Lucene open-source search software
fix this assertion, so the test isnt sensitive to the speed of your computer
Robert Muire6cc82f52c7b
diff --git a/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java b/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.javaindex a89dbb84562..758a3a0ba86 100644--- a/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java+++ b/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java@@ -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