SOLR-4601: clean up test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-03-17 23:31:07 +00:00
parent 6ff405d99f
commit d2275c3145

View File

@ -163,9 +163,6 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
createCmd.setDataDir(dataDir);
createCmd.setNumShards(2);
createNewSolrServer("", baseUrl).request(createCmd);
printLayout();
ModifiableSolrParams params = new ModifiableSolrParams();
params.set("action", CollectionAction.DELETE.toString());
@ -175,14 +172,9 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
NamedList<Object> resp = createNewSolrServer("", baseUrl).request(request);
Thread.sleep(5000);
printLayout();
checkForMissingCollection(collectionName);
// now creating that collection should work
// try a bad action
params = new ModifiableSolrParams();
params.set("action", CollectionAction.CREATE.toString());
params.set("name", collectionName);