Skip to content

Commit

Permalink
raft: add a test case in TestStorageAppend
Browse files Browse the repository at this point in the history
  • Loading branch information
johncming committed Nov 15, 2018
1 parent ee9dcbc commit 9668536
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions raft/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9668536

Please sign in to comment.