From d35f0626882f90a1af932c7cf2fa9c79cb55e39d Mon Sep 17 00:00:00 2001 From: justin0u0 Date: Wed, 1 Jun 2022 01:19:01 +0800 Subject: [PATCH] fix: typo --- raft/raft_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/raft_test.go b/raft/raft_test.go index 025df4a..204bcfa 100644 --- a/raft/raft_test.go +++ b/raft/raft_test.go @@ -381,7 +381,7 @@ func TestCannotCommitLogIfTermMismatch(t *testing.T) { time.Sleep(1 * time.Second) leaderId, leaderTerm := c.checkSingleLeader() if newLeaderId != leaderId || newLeaderTerm != leaderTerm { - t.Fatal("new leader should not be affected when the old leader com") + t.Fatal("new leader should not be affected when the old leader come back") } // we disconnect all outgoing RPCs to all servers except the old leader