diff --git a/raft/raft_test.go b/raft/raft_test.go index 82373a334..c5d07387b 100644 --- a/raft/raft_test.go +++ b/raft/raft_test.go @@ -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