mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix type mismatch of format string (#5574)
This commit is contained in:
		@@ -102,7 +102,7 @@ func BenchmarkRepoBranchCommit(b *testing.B) {
 | 
				
			|||||||
				branchCount := len(branches)
 | 
									branchCount := len(branches)
 | 
				
			||||||
				b.ResetTimer() //We measure from here
 | 
									b.ResetTimer() //We measure from here
 | 
				
			||||||
				for i := 0; i < b.N; i++ {
 | 
									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)
 | 
										session.MakeRequest(b, req, http.StatusOK)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user