[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

View File

@ -1569,11 +1569,8 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
case SUITE: case SUITE:
nodePrefix = SUITE_CLUSTER_NODE_PREFIX; nodePrefix = SUITE_CLUSTER_NODE_PREFIX;
break; break;
case GLOBAL:
nodePrefix = GLOBAL_CLUSTER_NODE_PREFIX;
break;
default: default:
throw new ElasticsearchException("Unknown scope: " + scope); throw new ElasticsearchException("Scope not supported: " + scope);
} }
return new InternalTestCluster(currentClusterSeed, minNumDataNodes, maxNumDataNodes, return new InternalTestCluster(currentClusterSeed, minNumDataNodes, maxNumDataNodes,