mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Fix typo in test_helper
`CompareObjectMeta` is comparting Name attribute, but logging Namespace. Looks like a copy/paste error.
This commit is contained in:
parent
26d7ee0447
commit
06b634d616
@ -344,7 +344,7 @@ func CompareObjectMeta(a, b metav1.ObjectMeta) error {
|
||||
return fmt.Errorf("Different namespace expected:%s observed:%s", a.Namespace, b.Namespace)
|
||||
}
|
||||
if a.Name != b.Name {
|
||||
return fmt.Errorf("Different name expected:%s observed:%s", a.Namespace, b.Namespace)
|
||||
return fmt.Errorf("Different name expected:%s observed:%s", a.Name, b.Name)
|
||||
}
|
||||
if !reflect.DeepEqual(a.Labels, b.Labels) && (len(a.Labels) != 0 || len(b.Labels) != 0) {
|
||||
return fmt.Errorf("Labels are different expected:%v observed:%v", a.Labels, b.Labels)
|
||||
|
Loading…
Reference in New Issue
Block a user