tests: a bit more testing on proxy request

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1458602 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-03-20 01:27:21 +00:00
parent 7e3ae01860
commit 40456eb8e2
1 changed files with 10 additions and 0 deletions

View File

@ -203,6 +203,16 @@ public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {
qclient = new HttpSolrServer(baseUrl2 + "/onenodecollection");
results = qclient.query(query);
assertEquals(1, results.getResults().getNumFound());
doc = new SolrInputDocument();
doc.addField("id", "2");
qclient.add(doc);
qclient.commit();
query = new SolrQuery("*:*");
query.set("rows", 0);
results = qclient.query(query);
assertEquals(2, results.getResults().getNumFound());
}
private long testUpdateAndDelete() throws Exception {