From 7d3d6a7f644c66ac44f276d5784c4ac812d59c46 Mon Sep 17 00:00:00 2001
From: lixiaobing10051267
Date: Sat, 23 Jul 2016 14:18:09 +0800
Subject: [PATCH] t.Errorf output wrong variables in identity_mapper_test.go
---
pkg/controller/petset/identity_mappers_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/controller/petset/identity_mappers_test.go b/pkg/controller/petset/identity_mappers_test.go
index 6f5e822e83f..7e28e2bd569 100644
--- a/pkg/controller/petset/identity_mappers_test.go
+++ b/pkg/controller/petset/identity_mappers_test.go
@@ -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)
}
}
}