lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r820261 - /lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
Date Wed, 30 Sep 2009 13:22:54 GMT
Author: yonik
Date: Wed Sep 30 13:22:53 2009
New Revision: 820261

URL: http://svn.apache.org/viewvc?rev=820261&view=rev
Log:
tests: let jetty pick it's port

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java?rev=820261&r1=820260&r2=820261&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java Wed
Sep 30 13:22:53 2009
@@ -48,7 +48,7 @@
 
   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 @@
       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);
     }



Mime
View raw message