public List<NodeImpl> getNodes() {
        this.lock.lock();
        try {
            return new ArrayList<>(this.nodes);
        } finally {
            this.lock.unlock();
        }
    }
Ensure all peers leader is expectAddr
@param expectAddr expected address
@throws InterruptedException if interrupted
jraft-extension/rpc-grpc-impl/src/test/java/com/alipay/sofa/jraft/core/TestCluster.java