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
This commit is contained in:
Yonik Seeley 2010-10-19 13:46:21 +00:00
parent 41fe1b6d6a
commit 35432410db
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}