mirror of https://github.com/apache/lucene.git
SOLR-12739: Clear all collections in TestCollectionStateWatchers setup so that the collections created by test methods are spread evenly in the cluster.
This commit is contained in:
parent
8d3810df54
commit
aa0a5289e6
|
@ -62,6 +62,7 @@ public class TestCollectionStateWatchers extends SolrCloudTestCase {
|
|||
|
||||
@Before
|
||||
public void prepareCluster() throws Exception {
|
||||
cluster.deleteAllCollections();
|
||||
int missingServers = CLUSTER_SIZE - cluster.getJettySolrRunners().size();
|
||||
for (int i = 0; i < missingServers; i++) {
|
||||
cluster.startJettySolrRunner();
|
||||
|
|
Loading…
Reference in New Issue