From 35432410db90d8d5faa1db299712f75c04b9a67b Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Tue, 19 Oct 2010 13:46:21 +0000 Subject: [PATCH] tests: fix resource leak - shutdown jetty before overwriting git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1024233 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/solr/handler/TestReplicationHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java b/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java index 9adcd87b19c..8462a3bd897 100644 --- a/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -444,6 +444,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 { masterClient = createNewSolrServer(masterJetty.getLocalPort()); copyFile(new File(SLAVE_CONFIG), new File(slave.getConfDir(), "solrconfig.xml"), masterJetty.getLocalPort()); //start slave + slaveJetty.stop(); slaveJetty = createJetty(slave); slaveClient = createNewSolrServer(slaveJetty.getLocalPort()); }