Skip to content

Commit 6b720e1

Browse files
tgrossschmichael
andauthored
Apply suggestions from code review
Co-authored-by: Michael Schurter <michael.schurter@gmail.com>
1 parent e2cd0a7 commit 6b720e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

raft_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3111,10 +3111,12 @@ func TestRaft_FollowerRemovalNoElection(t *testing.T) {
31113111
c.rafts[i] = n
31123112
c.trans[i] = n.trans.(*InmemTransport)
31133113
c.fsms[i] = n.fsm.(*MockFSM)
3114+
3115+
// Give follower time to become a candidate before connecting
31143116
time.Sleep(500 * time.Millisecond)
31153117
c.FullyConnect()
31163118

3117-
// Wait for the restarted follower to settle.
3119+
// Wait for the restarted follower to recognize leader.
31183120
ch := c.WaitEventChan(t.Context(), func(o *Observation) bool {
31193121
if o == nil {
31203122
return false

0 commit comments

Comments
 (0)