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:
parent
f5314b66b9
commit
7ca70fcb17
2
middleware/cache/cache_test.go
vendored
2
middleware/cache/cache_test.go
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user