summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMura Li <typeless@users.noreply.github.com>2018-12-22 00:13:31 +0800
committertechknowlogick <hello@techknowlogick.com>2018-12-21 11:13:31 -0500
commit9a33798b30c254bb51c06e3a2349cd182f027b11 (patch)
treecb6d836b65966d22890290d4652df22ef249d70d
parent330bf8d3b3128096485f65e5e0d790bde2adc007 (diff)
downloadgitea-9a33798b30c254bb51c06e3a2349cd182f027b11.tar.gz
gitea-9a33798b30c254bb51c06e3a2349cd182f027b11.zip
Fix type mismatch of format string (#5574)
-rw-r--r--integrations/benchmarks_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/benchmarks_test.go b/integrations/benchmarks_test.go
index 7c4196f2b9..3f009f62ea 100644
--- a/integrations/benchmarks_test.go
+++ b/integrations/benchmarks_test.go
@@ -102,7 +102,7 @@ func BenchmarkRepoBranchCommit(b *testing.B) {
branchCount := len(branches)
b.ResetTimer() //We measure from here
for i := 0; i < b.N; i++ {
- req := NewRequestf(b, "GET", "/%s/%s/commits/%s", owner.Name, repo.Name, branches[i%branchCount])
+ req := NewRequestf(b, "GET", "/%s/%s/commits/%s", owner.Name, repo.Name, branches[i%branchCount].Name)
session.MakeRequest(b, req, http.StatusOK)
}
})