diff --git a/pkg/controller/petset/identity_mappers_test.go b/pkg/controller/petset/identity_mappers_test.go index 9ae65ace976..f19eaf05f40 100644 --- a/pkg/controller/petset/identity_mappers_test.go +++ b/pkg/controller/petset/identity_mappers_test.go @@ -55,11 +55,11 @@ func TestPetIDDNS(t *testing.T) { t.Fatalf("Failed to generate pet %v", err) } if hostname, ok := pod.Annotations[api_pod.PodHostnameAnnotation]; !ok || hostname != petName { - t.Errorf("Wrong hostname: %v", petName) + t.Errorf("Wrong hostname: %v", hostname) } // TODO: Check this against the governing service. if subdomain, ok := pod.Annotations[api_pod.PodSubdomainAnnotation]; !ok || subdomain != petSubdomain { - t.Errorf("Wrong subdomain: %v", petName) + t.Errorf("Wrong subdomain: %v", subdomain) } } }