Skip to content

Commit

Permalink
Address linter findings
Browse files Browse the repository at this point in the history
Signed-off-by: David Son <[email protected]>
  • Loading branch information
sondavidb committed Nov 6, 2024
1 parent 59d9f70 commit 6c97419
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"fmt"
"io/fs"
"os"
"strconv"
"testing"

"github.com/containerd/log"
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 6c97419

Please sign in to comment.