From 08d4d8dba5b66dfccf2e40a7921d8c839e216b7d Mon Sep 17 00:00:00 2001 From: ymqytw Date: Wed, 26 Oct 2016 19:17:05 -0700 Subject: [PATCH] Update drain test --- pkg/kubectl/cmd/drain_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/kubectl/cmd/drain_test.go b/pkg/kubectl/cmd/drain_test.go index 66d44ace53d..c75e1f32a35 100644 --- a/pkg/kubectl/cmd/drain_test.go +++ b/pkg/kubectl/cmd/drain_test.go @@ -26,6 +26,7 @@ import ( "net/url" "os" "reflect" + "strconv" "strings" "testing" "time" @@ -658,11 +659,11 @@ func createPods(ifCreateNewPods bool) (map[string]api.Pod, []api.Pod) { if ifCreateNewPods { uid = types.UID(i) } else { - uid = types.UID(string(i) + string(i)) + uid = types.UID(strconv.Itoa(i) + strconv.Itoa(i)) } pod := api.Pod{ ObjectMeta: api.ObjectMeta{ - Name: "pod" + string(i), + Name: "pod" + strconv.Itoa(i), Namespace: "default", UID: uid, Generation: int64(i),