From e6cc82f52c7b3a4ba1afd9301959063ee578590d Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 14 Jul 2010 00:05:32 +0000 Subject: [PATCH] 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 --- solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java b/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java index 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 commits = delPolicy.getCommits(); - assertEquals(((SolrDeletionPolicy) (delPolicy.getWrappedDeletionPolicy())).getMaxOptimizedCommitsToKeep(), commits.size()); + assertTrue(commits.size() <= ((SolrDeletionPolicy) (delPolicy.getWrappedDeletionPolicy())).getMaxOptimizedCommitsToKeep()); } @Test