mirror of https://github.com/apache/lucene.git
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:
parent
7e3ae01860
commit
40456eb8e2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue