Skip to content

Commit

Permalink
Make it work with Go 1.15
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yiqigao217 authored and adrianludwin committed Aug 25, 2020
1 parent bc976e9 commit 4cc22b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion incubator/hnc/internal/reconcilers/hierarchy_config_test.go
Expand Up @@ -2,6 +2,7 @@ package reconcilers_test

import (
"context"
"fmt"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4cc22b0

Please sign in to comment.