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:
Yonik Seeley 2009-09-30 13:22:53 +00:00
parent df2edf1029
commit 96b9fee279
1 changed files with 2 additions and 1 deletions

View File

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