Fix TestSlowNodeRestore

This commit is contained in:
Ben Darnell 2014-11-21 16:37:55 -05:00
parent 0d680d0e6b
commit 03c8881e35

View File

@ -1179,7 +1179,7 @@ func TestSlowNodeRestore(t *testing.T) {
}
lead := nt.peers[1].(*raft)
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()
// trigger a snapshot