]> Cypherpunks repositories - gostls13.git/commit
net: allow more generous slop in Fluctuation tests
authorBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 17:20:26 +0000 (12:20 -0500)
committerBryan C. Mills <bcmills@google.com>
Mon, 22 Nov 2021 18:57:33 +0000 (18:57 +0000)
commit5a3d871831c9febebe513863a26ecc6da1c9c4f3
treef4b1c00cd26cdc712b000ea586c73a21c4558ff5
parent2d7ae3fbd86d4b5471ac4044ece208b29cd0ef74
net: allow more generous slop in Fluctuation tests

It appears that at least the OpenBSD kernel gets sloppier the longer
the timeout we give it, up to an observed overhead of around 25%.
Let's give it a little more than that (33%) in the comparison, and
also increase the growth curve to match the actual observed times
instead of exponential initial growth.

Fixes #36108

Change-Id: Id3e54559b7c45b7c8bc0ca07dce74ca60e77e7ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/366176
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/timeout_test.go