Fix error printing objects from kubectl get -w

This commit is contained in:
Jordan Liggitt
2017-02-28 17:45:09 -05:00
parent 35c2e70dd1
commit 31b3e01f1e
7 changed files with 70 additions and 27 deletions

View File

@@ -794,7 +794,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 {