mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-21 04:33:03 +00:00
v3: fix benchmarks
This commit is contained in:
parent
78c6197430
commit
90c1c4c5a3
@ -462,7 +462,7 @@ func Benchmark_App_MethodNotAllowed(b *testing.B) {
|
||||
}
|
||||
b.StopTimer()
|
||||
require.Equal(b, 405, c.Response.StatusCode())
|
||||
require.Equal(b, "GET, HEAD", string(c.Response.Header.Peek("Allow")))
|
||||
require.Equal(b, "GET", string(c.Response.Header.Peek("Allow")))
|
||||
require.Equal(b, utils.StatusMessage(StatusMethodNotAllowed), string(c.Response.Body()))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user