From fa45d606faefcfcc6c447a50146e1f1cbc06adc1 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 13 Jul 2020 21:54:42 +0200 Subject: [PATCH] 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 --- types/logger/logger_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/logger/logger_test.go b/types/logger/logger_test.go index e5d1f5087..16fec5e0b 100644 --- a/types/logger/logger_test.go +++ b/types/logger/logger_test.go @@ -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.") } }