types/logger: fix go test vet error

Silences

types/logger/logger_test.go:63:30: conversion from int to string yields a string of one rune

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur 2020-07-13 21:54:42 +02:00 committed by Brad Fitzpatrick
parent 30bbbe9467
commit fa45d606fa

View File

@ -60,7 +60,7 @@ func TestRateLimiter(t *testing.T) {
lg("templated format string no. %d", i)
if i == 4 {
lg("Make sure this string makes it through the rest (that are blocked) %d", i)
prefixed = WithPrefix(lg, string('0'+i))
prefixed = WithPrefix(lg, string(rune('0'+i)))
prefixed(" shouldn't get filtered.")
}
}