lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r926086 - /lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java
Date Mon, 22 Mar 2010 13:54:08 GMT
Author: yonik
Date: Mon Mar 22 13:54:07 2010
New Revision: 926086

URL: http://svn.apache.org/viewvc?rev=926086&view=rev
Log:
tests: revert property to prev state

Modified:
    lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java

Modified: lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java?rev=926086&r1=926085&r2=926086&view=diff
==============================================================================
--- lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java
(original)
+++ lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/handler/component/DistributedSpellCheckComponentTest.java
Mon Mar 22 13:54:07 2010
@@ -24,9 +24,10 @@ public class DistributedSpellCheckCompon
   @Override
   public void tearDown() throws Exception {
     super.tearDown();
-    if(saveProp != null) {
+    if (saveProp == null)
+      System.clearProperty("solr.directoryFactory");
+    else
       System.setProperty("solr.directoryFactory", saveProp);
-    }
   }
   
   @Override



Mime
View raw message