raft: (re-)introduce TestRecvMsgPreVote
TestRecvMsgPreVote was intended to be introduced in github.com/coreos/etcd/pull/6624 but was uncapitalized (search for testRecvMsgPreVote instead) and then subsequently removed due to it being unused.release-3.3
parent
b61c7489e0
commit
248384a468
|
@ -1361,6 +1361,10 @@ func TestRecvMsgVote(t *testing.T) {
|
|||
testRecvMsgVote(t, pb.MsgVote)
|
||||
}
|
||||
|
||||
func TestRecvMsgPreVote(t *testing.T) {
|
||||
testRecvMsgVote(t, pb.MsgPreVote)
|
||||
}
|
||||
|
||||
func testRecvMsgVote(t *testing.T, msgType pb.MessageType) {
|
||||
tests := []struct {
|
||||
state StateType
|
||||
|
|
Loading…
Reference in New Issue