From d8bb56d4ad3177b34349fa106cdb3edfe9c711df Mon Sep 17 00:00:00 2001 From: Mikhail Khludnev Date: Sun, 9 Oct 2016 18:17:49 +0300 Subject: [PATCH] SOLR-9604,SOLR-9608: fix HttpSolrClientConPoolTest.testPoolSize() --- .../solr/client/solrj/impl/HttpSolrClientConPoolTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/HttpSolrClientConPoolTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/HttpSolrClientConPoolTest.java index 1e9b0f397c0..e38ec124d67 100644 --- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/HttpSolrClientConPoolTest.java +++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/HttpSolrClientConPoolTest.java @@ -75,6 +75,13 @@ public class HttpSolrClientConPoolTest extends SolrJettyTestBase { } final String barUrl = yetty.getBaseUrl().toString() + "/" + "collection1"; + { + client1.setBaseURL(fooUrl); + client1.deleteByQuery("*:*"); + client1.setBaseURL(barUrl); + client1.deleteByQuery("*:*"); + } + List urls = new ArrayList<>(); for(int i=0; i<17; i++) { urls.add(fooUrl);