mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raftpb: clean up naming in ConfChange
This commit is contained in:
@@ -691,7 +691,7 @@ func TestNodeRestart(t *testing.T) {
|
||||
func TestNodeRestartFromSnapshot(t *testing.T) {
|
||||
snap := raftpb.Snapshot{
|
||||
Metadata: raftpb.SnapshotMetadata{
|
||||
ConfState: raftpb.ConfState{Nodes: []uint64{1, 2}},
|
||||
ConfState: raftpb.ConfState{Voters: []uint64{1, 2}},
|
||||
Index: 2,
|
||||
Term: 1,
|
||||
},
|
||||
@@ -845,7 +845,7 @@ func TestNodeProposeAddLearnerNode(t *testing.T) {
|
||||
t.Errorf("apply conf change should return new added learner: %v", state.String())
|
||||
}
|
||||
|
||||
if len(state.Nodes) != 1 {
|
||||
if len(state.Voters) != 1 {
|
||||
t.Errorf("add learner should not change the nodes: %v", state.String())
|
||||
}
|
||||
t.Logf("apply raft conf %v changed to: %v", cc, state.String())
|
||||
|
||||
Reference in New Issue
Block a user