From 40456eb8e25d02004ef86903446f7b40bab6ef0a Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Wed, 20 Mar 2013 01:27:21 +0000 Subject: [PATCH] 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 --- .../org/apache/solr/cloud/BasicDistributedZk2Test.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java b/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java index e0d4b6bd562..8a0ca2cb8db 100644 --- a/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java +++ b/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java @@ -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 {