Skip to content

Commit 9c8d7a4

Browse files
author
Andrey Ershov
committed
Empty randomVotingTombstones
1 parent 3657f75 commit 9c8d7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private static CoordinationMetaData.VotingConfiguration randomVotingConfig() {
416416
}
417417

418418
private Set<VotingTombstone> randomVotingTombstones() {
419-
final int size = randomIntBetween(1, 10);
419+
final int size = randomIntBetween(0, 10);
420420
final Set<VotingTombstone> nodes = new HashSet<>(size);
421421
while (nodes.size() < size) {
422422
assertTrue(nodes.add(new VotingTombstone(randomAlphaOfLength(10), randomAlphaOfLength(10))));

0 commit comments

Comments
 (0)