Skip to content

Commit

Permalink
removed extra lines, tested return values
Browse files Browse the repository at this point in the history
  • Loading branch information
joey1123455 committed Oct 12, 2023
2 parents 0a70999 + bb026a6 commit 4ca0832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1066,12 +1066,12 @@ func Benchmark_Ctx_CookieParser(b *testing.B) {
c.Request().Header.Set("Cookie", "fee=45.78")
c.Request().Header.Set("Cookie", "score=7,6,10")

var err error
// Run the function b.N times
var r error
for i := 0; i < b.N; i++ {
r = c.CookieParser(cookie1)
err = c.CookieParser(cookie1)
}
utils.AssertEqual(b, nil, r)
utils.AssertEqual(b, nil, err)
}

// go test -run Test_Ctx_Cookies
Expand Down

0 comments on commit 4ca0832

Please sign in to comment.