Browse Source

Fix TestSlowNodeRestore

Ben Darnell 11 years ago
parent
commit
03c8881e35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/raft_test.go

+ 1 - 1
raft/raft_test.go

@@ -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