Merge pull request #29502 from lixiaobing10051267/masterHostName

Automatic merge from submit-queue

t.Errorf output wrong variables in identity_mapper_test.go

t.Errorf output wrong variables in identity_mapper_test.go

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/29502)
<!-- Reviewable:end -->
pull/6/head
Kubernetes Submit Queue 2016-08-12 00:31:53 -07:00 committed by GitHub
commit 8bd71c3de9
1 changed files with 2 additions and 2 deletions

View File

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