raft: add a test case in TestStorageAppend

This commit is contained in:
caoming 2018-11-15 16:41:36 +08:00
parent ee9dcbca0d
commit 9668536124

View File

@ -210,6 +210,11 @@ func TestStorageAppend(t *testing.T) {
werr error
wentries []pb.Entry
}{
{
[]pb.Entry{{Index: 1, Term: 1}, {Index: 2, Term: 2}},
nil,
[]pb.Entry{{Index: 3, Term: 3}, {Index: 4, Term: 4}, {Index: 5, Term: 5}},
},
{
[]pb.Entry{{Index: 3, Term: 3}, {Index: 4, Term: 4}, {Index: 5, Term: 5}},
nil,