[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:
javanna 2014-09-01 18:24:39 +02:00 committed by Luca Cavanna
parent 598854dd72
commit 0d49a8ec76
1 changed files with 1 additions and 4 deletions

View File

@ -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,