Files
kubernetes/pkg/kubelet
Kubernetes Submit Queue f977752243 Merge pull request #30953 from m1093782566/m109-node_status_test
Automatic merge from submit-queue

[kubelet test] Improve node status test debug info

I find the output format `%v` of glog couldn't output useful information of an `api.Node` object. The output of this line https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_node_status_test.go#L492
is

```
kubelet_node_status_test.go:491: expected
                &TypeMeta{Kind:,APIVersion:,}
                , got
                &TypeMeta{Kind:,APIVersion:,}
```

- It's difficult for me to tell the difference between expected and got.

- I prefer to use `diff.ObjectDiff(expectedNode, updatedNode)` to output the debug information as it will point out the starting character of the different objects.

I think this line https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_node_status_test.go#L647 can use `diff.ObjectDiff()` as well.

The related issus is #30952
2016-08-23 00:19:20 -07:00
..
2016-08-02 16:33:03 -07:00
2016-07-16 13:48:21 -04:00
2016-08-03 01:14:44 +03:00
2016-08-03 01:14:44 +03:00
2016-08-17 16:21:19 -04:00
2016-07-16 13:48:21 -04:00
2016-07-16 13:48:21 -04:00
2016-08-03 01:14:44 +03:00
2016-07-16 13:48:21 -04:00
2016-03-02 20:46:32 -05:00
2016-08-03 01:14:44 +03:00
2016-08-03 13:19:22 +08:00