mirror of https://github.com/apache/lucene.git
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:
parent
41fe1b6d6a
commit
35432410db
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue