mirror of https://github.com/apache/lucene.git
randomize v1 and v2
This commit is contained in:
parent
833a6f3ffb
commit
6d97305c63
|
@ -50,7 +50,7 @@ public class TestReqParamsAPI extends SolrCloudTestCase {
|
||||||
private void setupHarnesses() {
|
private void setupHarnesses() {
|
||||||
for (final JettySolrRunner jettySolrRunner : cluster.getJettySolrRunners()) {
|
for (final JettySolrRunner jettySolrRunner : cluster.getJettySolrRunners()) {
|
||||||
RestTestHarness harness = new RestTestHarness(() -> jettySolrRunner.getBaseUrl().toString() + "/" + COLL_NAME);
|
RestTestHarness harness = new RestTestHarness(() -> jettySolrRunner.getBaseUrl().toString() + "/" + COLL_NAME);
|
||||||
if (true) {
|
if (random().nextBoolean()) {
|
||||||
harness.setServerProvider(() -> jettySolrRunner.getBaseUrl().toString() + "/____v2/c/" + COLL_NAME);
|
harness.setServerProvider(() -> jettySolrRunner.getBaseUrl().toString() + "/____v2/c/" + COLL_NAME);
|
||||||
}
|
}
|
||||||
restTestHarnesses.add(harness);
|
restTestHarnesses.add(harness);
|
||||||
|
|
Loading…
Reference in New Issue