From 6c974196c3e091d44a1df1ba2bbc16e0cee2bbb0 Mon Sep 17 00:00:00 2001 From: David Son Date: Wed, 6 Nov 2024 22:10:35 +0000 Subject: [PATCH] Address linter findings Signed-off-by: David Son --- benchmark/framework/framework.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benchmark/framework/framework.go b/benchmark/framework/framework.go index 1cba2d2ab..f72473e38 100644 --- a/benchmark/framework/framework.go +++ b/benchmark/framework/framework.go @@ -23,7 +23,6 @@ import ( "fmt" "io/fs" "os" - "strconv" "testing" "github.com/containerd/log" @@ -78,7 +77,7 @@ func (frame *BenchmarkFramework) Run(ctx context.Context) { testDriver.BeforeFunction() } for j := 0; j < testDriver.NumberOfTests; j++ { - log.G(ctx).WithField("test_name", testDriver.TestName).Infof("TestStart for " + testDriver.TestName + "_" + strconv.Itoa(j+1)) + log.G(ctx).WithField("test_name", testDriver.TestName).Infof("TestStart for %s_%d", testDriver.TestName, j+1) fmt.Printf("Running test %d of %d\n", j+1, testDriver.NumberOfTests) res := testing.Benchmark(testDriver.TestFunction) testDriver.FullRunStats.BenchmarkTimes = append(testDriver.FullRunStats.BenchmarkTimes, res.T.Seconds())