You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/07/14 02:05:32 UTC
svn commit: r963909 -
/lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java
Author: rmuir
Date: Wed Jul 14 00:05:32 2010
New Revision: 963909
URL: http://svn.apache.org/viewvc?rev=963909&view=rev
Log:
fix this assertion, so the test isnt sensitive to the speed of your computer
Modified:
lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java
Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java?rev=963909&r1=963908&r2=963909&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java Wed Jul 14 00:05:32 2010
@@ -105,7 +105,7 @@ public class TestSolrDeletionPolicy1 ext
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