From 9a33798b30c254bb51c06e3a2349cd182f027b11 Mon Sep 17 00:00:00 2001 From: Mura Li Date: Sat, 22 Dec 2018 00:13:31 +0800 Subject: [PATCH] Fix type mismatch of format string (#5574) --- integrations/benchmarks_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } })