t.Errorf output wrong variables in identity_mapper_test.go

This commit is contained in:
lixiaobing10051267 2016-07-23 14:18:09 +08:00
parent 34244efd22
commit 7d3d6a7f64

View File

@ -54,11 +54,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)
}
}
}