Apache Lucene open-source search software
tests: revert property to prev state
Yonik Seeley64b50a8a42b6
diff --git a/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java b/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.javaindex 5ae8f4040f6..b49d44a76b6 100644--- a/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java+++ b/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java@@ -24,9 +24,10 @@ public class DistributedSpellCheckComponentTest extends BaseDistributedSearchTes@Overridepublic void tearDown() throws Exception {super.tearDown();- if(saveProp != null) {+ if (saveProp == null)+ System.clearProperty("solr.directoryFactory");+ elseSystem.setProperty("solr.directoryFactory", saveProp);- }}@Override