Merge pull request #42285 from liggitt/get-watch

Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)

Fix error printing objects from kubectl get -w

Fixes #42276
This commit is contained in:
Kubernetes Submit Queue
2017-03-03 16:44:45 -08:00
committed by GitHub
7 changed files with 70 additions and 27 deletions

View File

@@ -848,7 +848,7 @@ func TestWatchSelector(t *testing.T) {
cmd.Flags().Set("selector", "a=b")
cmd.Run(cmd, []string{"pods"})
expected := []runtime.Object{podList, events[2].Object, events[3].Object}
expected := []runtime.Object{&pods[0], &pods[1], events[2].Object, events[3].Object}
verifyObjects(t, expected, tf.Printer.(*testPrinter).Objects)
if len(buf.String()) == 0 {