mirror of https://github.com/apache/lucene.git
Fix precommit
This commit is contained in:
parent
f1cb28c234
commit
0f75635aff
|
@ -89,7 +89,7 @@ public class LeaderElectionContextKeyTest extends SolrCloudTestCase {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
while (System.nanoTime() < timeout) {
|
while (System.nanoTime() < timeout) {
|
||||||
try {
|
try {
|
||||||
found = getElectionNodes(TEST_COLLECTION_1, "shard1", stateReader.getZkClient()).size() == 0;
|
found = getElectionNodes(TEST_COLLECTION_1, shard, stateReader.getZkClient()).size() == 0;
|
||||||
break;
|
break;
|
||||||
} catch (KeeperException.NoNodeException nne) {
|
} catch (KeeperException.NoNodeException nne) {
|
||||||
// ignore
|
// ignore
|
||||||
|
|
Loading…
Reference in New Issue