Skip to content

Commit 1509f33

Browse files
committed
fix lint
1 parent ad8de13 commit 1509f33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integrations/benchmarks_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ func BenchmarkRepoBranchCommit(b *testing.B) {
9393
b.Run("CreateBranch", func(b *testing.B) {
9494
b.Skip("benchmark broken") // TODO fix
9595
b.StopTimer()
96-
branchName := "new_" + StringWithCharset(5+rand.Intn(10), "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
96+
branchName := StringWithCharset(5+rand.Intn(10), "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
9797
b.StartTimer()
9898
for i := 0; i < b.N; i++ {
99-
b.Run(branchName, func(b *testing.B) {
100-
testAPICreateBranch(b, session, repo.OwnerName, repo.Name, repo.DefaultBranch, branchName, http.StatusCreated)
99+
b.Run("new_"+branchName, func(b *testing.B) {
100+
testAPICreateBranch(b, session, repo.OwnerName, repo.Name, repo.DefaultBranch, "new_"+branchName, http.StatusCreated)
101101
})
102102
}
103103
})

0 commit comments

Comments
 (0)