Merge pull request #1439 from jhadvig/err_handler

Handle invalid pod name
This commit is contained in:
Tim Hockin
2014-09-25 15:00:47 -07:00
2 changed files with 7 additions and 4 deletions

View File

@@ -366,7 +366,6 @@ func TestContainerLogs(t *testing.T) {
expectedContainerName := "baz"
expectedTail := ""
expectedFollow := false
// expected := api.Container{"goodpod": docker.Container{ID: "myContainerID"}}
fw.fakeKubelet.containerLogsFunc = func(podFullName, containerName, tail string, follow bool, stdout, stderr io.Writer) error {
if podFullName != expectedPodName {
t.Errorf("expected %s, got %s", expectedPodName, podFullName)