mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10263 from johncming/raftstorage
raft: add a test case in TestStorageAppend
This commit is contained in:
commit
c2d023ce74
@ -210,6 +210,11 @@ func TestStorageAppend(t *testing.T) {
|
|||||||
werr error
|
werr error
|
||||||
wentries []pb.Entry
|
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}},
|
[]pb.Entry{{Index: 3, Term: 3}, {Index: 4, Term: 4}, {Index: 5, Term: 5}},
|
||||||
nil,
|
nil,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user