open-consul/testutil
Nelson Elhage 87231e5234 WaitForLeader: Also wait for a non-zero index.
On my laptop, I'm currently seeing a huge number of intermittent test
failures all related to WaitForLeader returning after the test node has
become a leader, but before it has actually finished starting up, in
particular, performing the serf/Raft reconciliation.

Waiting for the index to become nonzero makes the tests pass reliably,
by also blocking until the new leader has started committing state.
2014-05-26 13:26:42 -07:00
..
wait.go WaitForLeader: Also wait for a non-zero index. 2014-05-26 13:26:42 -07:00
wait_test.go Add test file for testutil 2014-05-07 23:42:15 +02:00