mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-15 12:20:40 +08:00
put two test in 2AB (#294)
This commit is contained in:
parent
802b1880d5
commit
cb5fba6ea7
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user