Skip to content

Commit dcac793

Browse files
committed
fix lint issue
1 parent 6389141 commit dcac793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/benchmarks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func BenchmarkRepo(b *testing.B) {
6767
}
6868
}
6969

70-
//StringWithCharset random string (from https://www.calhoun.io/creating-random-strings-in-go/)
70+
// StringWithCharset random string (from https://www.calhoun.io/creating-random-strings-in-go/)
7171
func StringWithCharset(length int, charset string) string {
7272
b := make([]byte, length)
7373
for i := range b {
@@ -91,12 +91,12 @@ func BenchmarkRepoBranchCommit(b *testing.B) {
9191
session := loginUser(b, "user2")
9292
b.ResetTimer()
9393
b.Run("CreateBranch", func(b *testing.B) {
94-
b.Skip("benchmark broken") // TODO fix
9594
b.StopTimer()
9695
branchName := StringWithCharset(5+rand.Intn(10), "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
9796
b.StartTimer()
9897
for i := 0; i < b.N; i++ {
9998
b.Run("new_"+branchName, func(b *testing.B) {
99+
b.Skip("benchmark broken") // TODO fix
100100
testAPICreateBranch(b, session, repo.OwnerName, repo.Name, repo.DefaultBranch, "new_"+branchName, http.StatusCreated)
101101
})
102102
}

0 commit comments

Comments
 (0)