Refactor RegisterRetryCount, improve tests

This commit is contained in:
Deyuan Deng
2015-02-08 17:32:37 -05:00
parent 55b9944cfe
commit 4c6f6e0efc
5 changed files with 75 additions and 23 deletions

View File

@@ -203,8 +203,8 @@ func startComponents(manifestURL string) (apiServerURL string) {
nodeResources := &api.NodeResources{}
nodeController := nodeControllerPkg.NewNodeController(nil, "", machineList, nodeResources, cl, fakeKubeletClient{}, 5*time.Minute)
nodeController.Run(5*time.Second, 10, true)
nodeController := nodeControllerPkg.NewNodeController(nil, "", machineList, nodeResources, cl, fakeKubeletClient{}, 10, 5*time.Minute)
nodeController.Run(5*time.Second, true)
// Kubelet (localhost)
testRootDir := makeTempDirOrDie("kubelet_integ_1.")