1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 10:03:45 +00:00

🔍 verify body length

Co-Authored-By: kiyon <kiyon@gofiber.io>
This commit is contained in:
Fenny 2020-10-29 06:54:41 +01:00
parent f5314b66b9
commit 7ca70fcb17

View File

@ -257,6 +257,7 @@ func Benchmark_Cache(b *testing.B) {
}
utils.AssertEqual(b, fiber.StatusTeapot, fctx.Response.Header.StatusCode())
utils.AssertEqual(b, true, len(fctx.Response.Body()) > 30000)
}
// go test -v -run=^$ -bench=Benchmark_Cache_Store -benchmem -count=4
@ -286,6 +287,7 @@ func Benchmark_Cache_Store(b *testing.B) {
}
utils.AssertEqual(b, fiber.StatusTeapot, fctx.Response.Header.StatusCode())
utils.AssertEqual(b, true, len(fctx.Response.Body()) > 30000)
}
// testStore is used for testing custom stores