build: fix tests on go1.15
go1.15 introduced a stricter policy for what you can convert with `string()` and now `go vet` warns if you try to do `string(int)`. See: https://github.com/golang/go/issues/32479
This commit is contained in:
parent
101f82c6b3
commit
aa93b39d9b
2 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ func TestAsyncReaderSizes(t *testing.T) {
|
|||
for i := 0; i < len(texts)-1; i++ {
|
||||
texts[i] = str + "\n"
|
||||
all += texts[i]
|
||||
str += string(i%26 + 'a')
|
||||
str += string(rune(i)%26 + 'a')
|
||||
}
|
||||
texts[len(texts)-1] = all
|
||||
|
||||
|
@ -185,7 +185,7 @@ func TestAsyncReaderWriteTo(t *testing.T) {
|
|||
for i := 0; i < len(texts)-1; i++ {
|
||||
texts[i] = str + "\n"
|
||||
all += texts[i]
|
||||
str += string(i%26 + 'a')
|
||||
str += string(rune(i)%26 + 'a')
|
||||
}
|
||||
texts[len(texts)-1] = all
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue