Skip to content

Commit

Permalink
fix: fix for cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
Darko Djalevski committed Mar 29, 2021
1 parent d663efc commit 50295c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http2curl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func ExampleGetCurlCommand_other() {
func BenchmarkGetCurlCommand(b *testing.B) {
form := url.Values{}

for i := 0; i <= 50; i++ {
for i := 0; i <= b.N; i++ {
form.Add("number", strconv.Itoa(i))
body := form.Encode()
req, _ := http.NewRequest(http.MethodPost, "http://foo.com", ioutil.NopCloser(bytes.NewBufferString(body)))
Expand Down

0 comments on commit 50295c4

Please sign in to comment.