tests: improve test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1580755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-03-24 05:39:44 +00:00
parent 4fb6666823
commit b838ab4b96
2 changed files with 2 additions and 9 deletions

View File

@ -678,7 +678,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
// create new collections rapid fire
Map<String,List<Integer>> collectionInfos = new HashMap<>();
int cnt = random().nextInt(TEST_NIGHTLY ? 6 : 3) + 1;
int cnt = random().nextInt(TEST_NIGHTLY ? 6 : 1) + 1;
for (int i = 0; i < cnt; i++) {
int numShards = TestUtil.nextInt(random(), 0, shardCount) + 1;
@ -973,7 +973,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
public void run() {
// create new collections rapid fire
Map<String,List<Integer>> collectionInfos = new HashMap<>();
int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 3) + 1;
int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 1) + 1;
for (int i = 0; i < cnt; i++) {
String collectionName = "awholynewstresscollection_" + name + "_" + i;

View File

@ -320,7 +320,6 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
}
protected void waitForCollection(ZkStateReader reader, String collection, int slices) throws Exception {
// wait until shards have started registering...
int cnt = 30;
@ -1664,12 +1663,6 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
return res;
}
protected void runCollectionAdminCommand(ModifiableSolrParams params){
;
}
protected CollectionAdminResponse createCollection(Map<String,List<Integer>> collectionInfos,
String collectionName, int numShards, int replicationFactor, int maxShardsPerNode, SolrServer client, String createNodeSetStr) throws SolrServerException, IOException {