Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 4cc22b0

Browse files
yiqigao217adrianludwin
authored andcommitted
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 golang/go#32479. Tested by make test and make deploy.
1 parent bc976e9 commit 4cc22b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: incubator/hnc/internal/reconcilers/hierarchy_config_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package reconcilers_test
22

33
import (
44
"context"
5+
"fmt"
56

67
. "github.com/onsi/ginkgo"
78
. "github.com/onsi/gomega"
@@ -449,7 +450,7 @@ func hasChild(ctx context.Context, nm, cnm string) func() bool {
449450
func createNSes(ctx context.Context, num int) []string {
450451
nms := []string{}
451452
for i := 0; i < num; i++ {
452-
nm := createNS(ctx, string('a'+i))
453+
nm := createNS(ctx, fmt.Sprintf("%c", 'a'+i))
453454
nms = append(nms, nm)
454455
}
455456
return nms

0 commit comments

Comments
 (0)