better fail msg

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-18 17:06:10 +00:00
parent 68637790e0
commit 0a33ab46f7
1 changed files with 5 additions and 2 deletions

View File

@ -204,12 +204,15 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
commit(); commit();
Thread.sleep(100);
waitForRecoveriesToFinish(false); waitForRecoveriesToFinish(false);
// shard should be inconsistent // shard should be inconsistent
shardFailMessage = checkShardConsistency("shard1", true); shardFailMessage = checkShardConsistency("shard1", true);
assertNotNull(shardFailMessage); assertNotNull(
"shard1 shoul have just been set up to be inconsistent - but it's still consistent",
shardFailMessage);
jetties = new HashSet<CloudJettyRunner>(); jetties = new HashSet<CloudJettyRunner>();
jetties.addAll(shardToJetty.get("shard1")); jetties.addAll(shardToJetty.get("shard1"));