tests: revert property to prev state

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/newtrunk@926086 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-03-22 13:54:07 +00:00
parent 386d3eabbc
commit 64b50a8a42

View File

@ -24,9 +24,10 @@ public class DistributedSpellCheckComponentTest extends BaseDistributedSearchTes
@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