pkgsite/internal/middleware/stats
Michael Matloob 2353df002b internal/middleware/stats: make TestStats more reliable
TestStats depended on having a big sleep in the middle and then
expecting that the time taken to the last byte was dominated by the
sleep time. Instead of doing that use upper and lower bounds where
possible to determine the range MillisToFirstByte and MillisToLastByte
should fall between

Fixes #61770

Change-Id: Ie266e34165670827035fb2a05e32c2aee268a2e0
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/517975
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
2023-08-09 20:19:21 +00:00
..
stats.go internal/middleware: move stats to its own package 2023-08-04 20:52:42 +00:00
stats_test.go internal/middleware/stats: make TestStats more reliable 2023-08-09 20:19:21 +00:00