Fix typo in test_helper

`CompareObjectMeta` is comparting Name attribute, but
logging Namespace. Looks like a copy/paste error.
This commit is contained in:
Henrique Truta 2017-05-23 11:00:43 -03:00
parent 26d7ee0447
commit 06b634d616

View File

@ -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)