mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: refine initial entries logic in StartNode
This commit is contained in:
@@ -175,7 +175,7 @@ func TestNode(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
n := StartNode(1, []int64{1}, 0, 0, []raftpb.ConfChange{cc})
|
||||
n := StartNode(1, []int64{1}, 0, 0)
|
||||
n.Campaign(ctx)
|
||||
if g := <-n.Ready(); !reflect.DeepEqual(g, wants[0]) {
|
||||
t.Errorf("#%d: g = %+v,\n w %+v", 1, g, wants[0])
|
||||
|
||||
Reference in New Issue
Block a user