Commit 9ecf57e3 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #46288 from henriquetruta/fix_typo_test

Automatic merge from submit-queue Fix typo in test_helper `CompareObjectMeta` is comparting Name attribute, but logging Namespace. Looks like a copy/paste error.
parents 25aa6003 06b634d6
......@@ -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