put two test in 2AB (#294)

This commit is contained in:
Isaac 2021-09-21 14:16:14 +08:00 committed by GitHub
parent 802b1880d5
commit cb5fba6ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -804,7 +804,7 @@ func TestVoteRequest2AB(t *testing.T) {
// TestVoter tests the voter denies its vote if its own log is more up-to-date
// than that of the candidate.
// Reference: section 5.4.1
func TestVoter2AA(t *testing.T) {
func TestVoter2AB(t *testing.T) {
tests := []struct {
ents []pb.Entry
logterm uint64

View File

@ -614,7 +614,7 @@ func TestHandleMessageType_MsgAppend2AB(t *testing.T) {
}
}
func TestRecvMessageType_MsgRequestVote2AA(t *testing.T) {
func TestRecvMessageType_MsgRequestVote2AB(t *testing.T) {
msgType := pb.MessageType_MsgRequestVote
msgRespType := pb.MessageType_MsgRequestVoteResponse
tests := []struct {