test: work on hardening this test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1444468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-02-10 01:11:43 +00:00
parent d37c98d95a
commit f90584d0db
1 changed files with 3 additions and 2 deletions

View File

@ -214,7 +214,8 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
shardFailMessage = waitTillInconsistent();
assertNotNull(
"Test Setup Failure: shard1 should have just been set up to be inconsistent - but it's still consistent",
"Test Setup Failure: shard1 should have just been set up to be inconsistent - but it's still consistent. Leader:" + leaderJetty.url +
"skip list:" + skipServers,
shardFailMessage);
jetties = new HashSet<CloudJettyRunner>();
@ -240,7 +241,7 @@ public class SyncSliceTest extends AbstractFullDistribZkTestBase {
private void waitTillRecovered() throws Exception {
for (int i = 0; i < 30; i++) {
Thread.sleep(1000);
Thread.sleep(3000);
ZkStateReader zkStateReader = cloudClient.getZkStateReader();
zkStateReader.updateClusterState(true);
ClusterState clusterState = zkStateReader.getClusterState();