Skip to content

Commit

Permalink
Merge pull request #10263 from johncming/raftstorage
Browse files Browse the repository at this point in the history
raft:  add a test case in TestStorageAppend
  • Loading branch information
xiang90 authored Nov 15, 2018
2 parents fa92397 + 9668536 commit c2d023c
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 c2d023c

Please sign in to comment.