mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
✅ I am stupid
This commit is contained in:
parent
fc11562191
commit
3043033f0a
@ -119,7 +119,7 @@ func Test_Limiter_Headers(t *testing.T) {
|
||||
app.Handler()(fctx)
|
||||
|
||||
utils.AssertEqual(t, "50", string(fctx.Response.Header.Peek("X-RateLimit-Limit")))
|
||||
if v := string(fctx.Response.Header.Peek("X-RateLimit-Reset")); v != "" {
|
||||
if v := string(fctx.Response.Header.Peek("X-RateLimit-Remaining")); v != "" {
|
||||
t.Errorf("The X-RateLimit-Remaining header is not set correctly - value is an empty string.")
|
||||
}
|
||||
if v := string(fctx.Response.Header.Peek("X-RateLimit-Reset")); !(v == "1" || v == "2") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user