kubelet: Refactor isPodRunning() in runonce.go

Replace InspectContainer() with generic GetPodStatus().
This commit is contained in:
Yifan Gu
2015-04-28 17:39:20 -07:00
parent 44e7109341
commit c848fa447d
2 changed files with 10 additions and 13 deletions

View File

@@ -113,6 +113,7 @@ func TestRunOnce(t *testing.T) {
{label: "list pod container", containers: []docker.APIContainers{}},
{label: "syncPod", containers: podContainers},
{label: "list pod container", containers: podContainers},
{label: "list pod container", containers: podContainers},
},
inspectContainersResults: []inspectContainersResult{
{