|
|
@@ -156,7 +156,7 @@ func TestNode(t *testing.T) {
|
|
|
}
|
|
|
wants := []Ready{
|
|
|
{
|
|
|
- SoftState: &SoftState{Lead: 1, Nodes: []uint64{1}, RaftState: StateLeader},
|
|
|
+ SoftState: &SoftState{Lead: 1, Nodes: []uint64{1}, RemovedNodes: []uint64{}, RaftState: StateLeader},
|
|
|
HardState: raftpb.HardState{Term: 1, Commit: 2},
|
|
|
Entries: []raftpb.Entry{
|
|
|
{},
|
|
|
@@ -281,6 +281,7 @@ func TestSoftStateEqual(t *testing.T) {
|
|
|
{&SoftState{RaftState: StateLeader}, false},
|
|
|
{&SoftState{ShouldStop: true}, false},
|
|
|
{&SoftState{Nodes: []uint64{1, 2}}, false},
|
|
|
+ {&SoftState{RemovedNodes: []uint64{1, 2}}, false},
|
|
|
}
|
|
|
for i, tt := range tests {
|
|
|
if g := tt.st.equal(&SoftState{}); g != tt.we {
|