зеркало из https://github.com/golang/pkgsite.git
2353df002b
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> |
||
---|---|---|
.. | ||
stats.go | ||
stats_test.go |