tests: avoid FC insanity test for distributed tests

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1326199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-04-14 20:19:23 +00:00
parent bba32d3412
commit 8360a4e387
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ import java.util.Set;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.apache.lucene.search.FieldCache;
import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.embedded.JettySolrRunner;
@ -175,6 +176,7 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {
if (!AbstractSolrTestCase.recurseDelete(testDir)) {
System.err.println("!!!! WARNING: best effort to remove " + testDir.getAbsolutePath() + " FAILED !!!!!");
}
purgeFieldCache(FieldCache.DEFAULT); // avoid FC insanity
super.tearDown();
}