From 4cc22b0d655067b18313ea77fee2c45fa269c570 Mon Sep 17 00:00:00 2001 From: Yiqi Gao Date: Fri, 31 Jul 2020 14:37:02 -0400 Subject: [PATCH] Make it work with Go 1.15 This bug is a warning of converting integer to a string of rune instead of digits. This warning is introduced in Go 1.15. See https://blog.golang.org/go1.15-proposals and specifically https://github.com/golang/go/issues/32479. Tested by make test and make deploy. --- incubator/hnc/internal/reconcilers/hierarchy_config_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/incubator/hnc/internal/reconcilers/hierarchy_config_test.go b/incubator/hnc/internal/reconcilers/hierarchy_config_test.go index 7cf5d5909..51d152247 100644 --- a/incubator/hnc/internal/reconcilers/hierarchy_config_test.go +++ b/incubator/hnc/internal/reconcilers/hierarchy_config_test.go @@ -2,6 +2,7 @@ package reconcilers_test import ( "context" + "fmt" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -449,7 +450,7 @@ func hasChild(ctx context.Context, nm, cnm string) func() bool { func createNSes(ctx context.Context, num int) []string { nms := []string{} for i := 0; i < num; i++ { - nm := createNS(ctx, string('a'+i)) + nm := createNS(ctx, fmt.Sprintf("%c", 'a'+i)) nms = append(nms, nm) } return nms