SOLR-5980: Add a test.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1587149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-04-14 04:47:19 +00:00
parent a4133ca6c2
commit 3800409581
1 changed files with 7 additions and 1 deletions

View File

@ -214,11 +214,17 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
// shard should be inconsistent
shardFailMessage = waitTillInconsistent();
assertNotNull(
"Test Setup Failure: shard1 should have just been set up to be inconsistent - but it's still consistent. Leader:"
+ leaderJetty.url + " Dead Guy:" + deadJetty.url + "skip list:" + skipServers, shardFailMessage);
// good place to test compareResults
boolean shouldFail = compareResults(
controlClient.query(new SolrQuery("*:*")).getResults().getNumFound(),
cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound());
assertTrue("A test that compareResults is working correctly failed",
shouldFail);
jetties = new HashSet<>();
jetties.addAll(shardToJetty.get("shard1"));
jetties.remove(leaderJetty);