Skip to content

Commit

Permalink
test: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Aug 23, 2023
1 parent 26f5da4 commit 3956f30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ protected void waitAllReplicasAreConnected() {
final long beginTime = System.currentTimeMillis();
while (System.currentTimeMillis() - beginTime < 5_000) {
for (int i = 0; i < serverCount; ++i) {
if (servers[i].getHA().isLeader()) {
if (servers[i].getHA() != null && servers[i].getHA().isLeader()) {
lastTotalConnectedReplica = servers[i].getHA().getOnlineReplicas();
if (lastTotalConnectedReplica >= serverCount - 1)
// ALL CONNECTED
Expand Down

0 comments on commit 3956f30

Please sign in to comment.