mirror of https://github.com/apache/lucene.git
tests: let jetty pick it's port
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@820261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df2edf1029
commit
96b9fee279
|
@ -48,7 +48,7 @@ public class TestLBHttpSolrServer extends TestCase {
|
|||
|
||||
public void setUp() throws Exception {
|
||||
for (int i = 0; i < solr.length; i++) {
|
||||
solr[i] = new SolrInstance("solr" + i, 43000 + i);
|
||||
solr[i] = new SolrInstance("solr" + i, 0);
|
||||
solr[i].setUp();
|
||||
solr[i].startJetty();
|
||||
addDocs(solr[i]);
|
||||
|
@ -224,6 +224,7 @@ public class TestLBHttpSolrServer extends TestCase {
|
|||
System.setProperty("solr.solr.home", getHomeDir());
|
||||
System.setProperty("solr.data.dir", getDataDir());
|
||||
jetty.start();
|
||||
this.port = jetty.getLocalPort();
|
||||
// System.out.println("waiting.........");
|
||||
// Thread.sleep(5000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue