take out del(*:*) for now and add a couple more asserts

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1364459 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-07-22 23:32:49 +00:00
parent 613ab7cde9
commit 2f9aca255f
1 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import java.util.List;
import java.util.Set;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrRequest;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrServer;
@ -85,7 +86,8 @@ public class SyncSliceTest extends FullSolrCloudTest {
waitForThingsToLevelOut();
del("*:*");
// something wrong with this?
//del("*:*");
List<String> skipServers = new ArrayList<String>();
@ -124,6 +126,9 @@ public class SyncSliceTest extends FullSolrCloudTest {
checkShardConsistency(false, true);
long cloudClientDocs = cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound();
assertEquals(4, cloudClientDocs);
skipServers = new ArrayList<String>();
skipServers.add(shardToJetty.get("shard1").get(random().nextInt(shardCount)).url + "/");
@ -138,6 +143,9 @@ public class SyncSliceTest extends FullSolrCloudTest {
waitForThingsToLevelOut();
checkShardConsistency(false, true);
cloudClientDocs = cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound();
assertEquals(5, cloudClientDocs);
}
private void waitForThingsToLevelOut() throws Exception {