[TEST] remove global scope mention from ElasticsearchIntegrationTest#buildTestCluster
The global cluster gets created from a static block and shared through all tests in the same jvm. The `buildTestCluster` method can't get called passing in `Scope.GLOBAL`, hence removed its mention from it as it might be misleading. The only two scopes supported within the `buildTestCluster` method are `SUITE` and `TEST`.
This commit is contained in:
parent
598854dd72
commit
0d49a8ec76
|
@ -1569,11 +1569,8 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
|||
case SUITE:
|
||||
nodePrefix = SUITE_CLUSTER_NODE_PREFIX;
|
||||
break;
|
||||
case GLOBAL:
|
||||
nodePrefix = GLOBAL_CLUSTER_NODE_PREFIX;
|
||||
break;
|
||||
default:
|
||||
throw new ElasticsearchException("Unknown scope: " + scope);
|
||||
throw new ElasticsearchException("Scope not supported: " + scope);
|
||||
}
|
||||
|
||||
return new InternalTestCluster(currentClusterSeed, minNumDataNodes, maxNumDataNodes,
|
||||
|
|
Loading…
Reference in New Issue