Fix TestSlowNodeRestore
This commit is contained in:
@ -1179,7 +1179,7 @@ func TestSlowNodeRestore(t *testing.T) {
|
|||||||
}
|
}
|
||||||
lead := nt.peers[1].(*raft)
|
lead := nt.peers[1].(*raft)
|
||||||
nextEnts(lead, nt.storage[1])
|
nextEnts(lead, nt.storage[1])
|
||||||
//lead.compact(lead.raftLog.applied, lead.nodes(), nil)
|
nt.storage[1].Compact(lead.raftLog.applied, &pb.ConfState{Nodes: lead.nodes()}, nil)
|
||||||
|
|
||||||
nt.recover()
|
nt.recover()
|
||||||
// trigger a snapshot
|
// trigger a snapshot
|
||||||
|
Reference in New Issue
Block a user