Cleanup fake_docker_client.go and manager_test.go

This commit is contained in:
Lantao Liu
2015-11-19 13:59:18 -08:00
parent 742243bb4a
commit 90ac508524
7 changed files with 141 additions and 149 deletions

View File

@@ -73,7 +73,8 @@ import (
)
var (
fakeDocker1, fakeDocker2 dockertools.FakeDockerClient
fakeDocker1 = dockertools.NewFakeDockerClient()
fakeDocker2 = dockertools.NewFakeDockerClient()
// Limit the number of concurrent tests.
maxConcurrency int
@@ -220,7 +221,7 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
cm := cm.NewStubContainerManager()
kcfg := kubeletapp.SimpleKubelet(
cl,
&fakeDocker1,
fakeDocker1,
"localhost",
testRootDir,
firstManifestURL,
@@ -252,7 +253,7 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
kcfg = kubeletapp.SimpleKubelet(
cl,
&fakeDocker2,
fakeDocker2,
"127.0.0.1",
testRootDir,
secondManifestURL,