Commit 06b634d6 authored by Henrique Truta's avatar Henrique Truta

Fix typo in test_helper

`CompareObjectMeta` is comparting Name attribute, but logging Namespace. Looks like a copy/paste error.
parent 26d7ee04
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment