mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Fix error printing objects from kubectl get -w
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user