Commit Graph

18 Commits

Author SHA1 Message Date
Jiarui Li
dccddfae90
refactor(raft_test): use consistent output format for TestProposal2AB (#348) 2021-12-21 03:14:47 +00:00
oocococo
94f6fc45ab
fix(raft): LogTerm exceed Term (#323)
LogTerm should always be smaller than Term in AppendMsg

fix #322
2021-11-29 13:54:37 +08:00
Vincil Lau
de31fb1e51
fix typo in raft/raft_test.go (#314) 2021-11-19 13:38:42 +08:00
Isaac
cb5fba6ea7
put two test in 2AB (#294) 2021-09-21 14:16:14 +08:00
ZhaolongLi
802b1880d5
fix redundant output (#290)
Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-09-13 15:09:25 +08:00
WangGuiPing
2f43d2901c
fix: use newMemoryStorageWithEnts (#258) 2021-05-10 13:40:45 +08:00
Trafalgar Ricardo Lu
3dcc4f1ede
Add test for project2ab (#249)
* add note for test function acceptAndReply()

* add test for project2ab

Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-02-03 19:25:55 +08:00
Rapiz
04065cadd6
Fix invalid term in 3a (#246)
Co-authored-by: NingLin-P <linningde25@gmail.com>
2021-02-02 11:49:46 +08:00
Rapiz
2f698ab6e3
Fix TestRecvMessageType_MsgRequestVote2AA (#245)
Provide with valid peers so that responses will not be ignored.
2021-02-01 13:19:08 +08:00
Rapiz
eb173f0df1
Add a helper function (#242)
Add newMemoryStorageWithEnts to provide valid MemoryStorage
2021-01-29 10:29:52 +08:00
Yixiao Chen
2f4bc66416
modified the description in TestRestoreIgnoreSnapshot2C (#236) 2021-01-21 20:45:38 +08:00
NingLin-P
2cf41a8144
fix overflow (#213)
Signed-off-by: linning <linningde25@gmail.com>
2020-07-29 12:57:40 +08:00
Lin ZiHao
109bf90f4d
TestHandleHeartbeat2AA add test case (#193)
* TestHeartbeatUpdateCommit2AB

Co-authored-by: NingLin-P <linning@pingcap.com>
2020-06-11 11:48:19 +08:00
Lin ZiHao
e01d729bd4
fix #171 let newRaft take care of peers and Prs (#172)
* let newRaft take care of peers and Prs
2020-05-14 13:24:12 +08:00
xiongjiwei
edb12af93f
fix confusing test data (#168)
* change confusing test data

* fix word spell
2020-05-11 17:19:26 +08:00
Lin ZiHao
189b95819b
update raft_test TestLeaderElection2AA (#159)
* update raft_test TestLeaderElection2AA

change expected state to StateCandidate. since implementation of prevote is not required
2020-05-07 14:47:10 +08:00
Connor1996
d06e805544 add missing term
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
5e089a2cd1 init course framework
Signed-off-by: Connor <zbk602423539@gmail.com>
Co-authored-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: linning <linningde25@gmail.com>
Co-authored-by: YangKeao <keao.yang@yahoo.com>
Co-authored-by: andylokandy <andylokandy@hotmail.com>
Co-authored-by: Iosmanthus Teng <myosmanthustree@gmail.com>
2020-04-30 15:25:07 +08:00