Explorar el Código

Merge pull request #8485 from irfansharif/TestRecvMsgPreVote

raft: (re-)introduce TestRecvMsgPreVote
Xiang Li hace 9 años
padre
commit
40e969b02a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      raft/raft_test.go

+ 4 - 0
raft/raft_test.go

@@ -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