|
@@ -255,7 +255,7 @@ func TestMultiNodeStart(t *testing.T) {
|
|
|
wants := []Ready{
|
|
wants := []Ready{
|
|
|
{
|
|
{
|
|
|
SoftState: &SoftState{Lead: 1, RaftState: StateLeader},
|
|
SoftState: &SoftState{Lead: 1, RaftState: StateLeader},
|
|
|
- HardState: raftpb.HardState{Term: 2, Commit: 2},
|
|
|
|
|
|
|
+ HardState: raftpb.HardState{Term: 2, Commit: 2, Vote: 1},
|
|
|
Entries: []raftpb.Entry{
|
|
Entries: []raftpb.Entry{
|
|
|
{Type: raftpb.EntryConfChange, Term: 1, Index: 1, Data: ccdata},
|
|
{Type: raftpb.EntryConfChange, Term: 1, Index: 1, Data: ccdata},
|
|
|
{Term: 2, Index: 2},
|
|
{Term: 2, Index: 2},
|
|
@@ -266,7 +266,7 @@ func TestMultiNodeStart(t *testing.T) {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- HardState: raftpb.HardState{Term: 2, Commit: 3},
|
|
|
|
|
|
|
+ HardState: raftpb.HardState{Term: 2, Commit: 3, Vote: 1},
|
|
|
Entries: []raftpb.Entry{{Term: 2, Index: 3, Data: []byte("foo")}},
|
|
Entries: []raftpb.Entry{{Term: 2, Index: 3, Data: []byte("foo")}},
|
|
|
CommittedEntries: []raftpb.Entry{{Term: 2, Index: 3, Data: []byte("foo")}},
|
|
CommittedEntries: []raftpb.Entry{{Term: 2, Index: 3, Data: []byte("foo")}},
|
|
|
},
|
|
},
|