* Refactor kuberuntime unit test

* Add gc unit test
* Fix init container unit test
This commit is contained in:
Random Liu
2016-10-17 09:22:42 +00:00
committed by Random-Liu
parent 37dc74fa7c
commit e87fa5e0ff
7 changed files with 501 additions and 285 deletions

View File

@@ -148,6 +148,7 @@ func TestGarbageCollectNoMaxLimit(t *testing.T) {
})
addPods(gc.podGetter, "foo", "foo1", "foo2", "foo3", "foo4")
assert.Nil(t, gc.GarbageCollect(kubecontainer.ContainerGCPolicy{MinAge: time.Minute, MaxPerPodContainer: -1, MaxContainers: -1}, true))
assert.Len(t, fakeDocker.Removed, 0)
}