Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
De-flake RAFT state adder tests (#6239)
Fixes `TestNRGHeartbeatOnLeaderChange` by checking if new entries are actually being applied. This was not possible before because it would always check a total of 0. If all proposals would fail, this test would still pass. More importantly `a.sum` was not reset, which meant that state before the call to `restart()` would be preserved, and replayed entries during catchup/recovery would be re-applied. Also added a call to `a.n.WaitForStop()` in `a.stop()`. Otherwise things could still be around and not properly stopped when we restart with `a.restart()`. Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
- Loading branch information