1
0
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:
Muhammed Efe Çetin 2022-09-05 18:34:02 +03:00
parent 78c6197430
commit 90c1c4c5a3
No known key found for this signature in database
GPG Key ID: 0AA4D45CBAA86F73

View File

@ -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()))
}