Github user eolivelli commented on the issue:
https://github.com/apache/zookeeper/pull/546
@nkalmar @ivankelly
thanks for your help
I have added a restart of the first 3 servers in the cluster.
This is enough to see leadership change, but I did not add specific
assertions, because I am seeing that the result of the election is subject to
change at each execution.
I would not like to add a new "flaky" test.
I don't know how it is worth to complicate the test.
Anyway, I will be happy to follow your guidelines in order to have a
significant test.
---