resources: Try to fix a Go 1.15 go vet error
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 10 Mar 2020 11:29:09 +0000 (12:29 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 10 Mar 2020 11:29:09 +0000 (12:29 +0100)
resources/transform_test.go

index e7235bc8cd430192f8c7554ee50ee985b4f3d997..6f18372793321f84b733c4b9c5deec28437ab8c5 100644 (file)
@@ -323,7 +323,7 @@ func TestTransform(t *testing.T) {
 
                transformations := make([]ResourceTransformation, count)
                for i := 0; i < count; i++ {
-                       transformations[i] = createContentReplacer(fmt.Sprintf("t%d", i), fmt.Sprint(i), string(i+65))
+                       transformations[i] = createContentReplacer(fmt.Sprintf("t%d", i), fmt.Sprint(i), string(rune(i+65)))
                }
 
                var countstr strings.Builder