tailscale/tstime
Josh Bleecher Snyder 8cf1af8a07 tstime/rate: deflake TestLongRunningQPS
This test set the bar too high.
Just a couple of missed timers was enough to fail.
Change the test to more of a sanity check.
While we're here, run it for just 1s instead of 5s.

Prior to this change, on a 13" M1 MPB, with

stress -p 512 ./rate.test -test.run=QPS

I saw 90%+ failures.

After this change, I'm at 30k runs with no failures yet.

Fixes #3733

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2022-01-13 16:48:29 -08:00
..
mono all: add (*testing.B).ReportAllocs() to every benchmark 2021-08-30 21:41:04 -07:00
rate tstime/rate: deflake TestLongRunningQPS 2022-01-13 16:48:29 -08:00
jitter.go tstime: add RandomDurationBetween helper 2021-01-21 07:54:14 -08:00
jitter_test.go tstime: add RandomDurationBetween helper 2021-01-21 07:54:14 -08:00
tstime.go tstime: add Parse3339B, for byte slices 2020-11-19 14:47:11 -08:00
tstime_test.go all: add (*testing.B).ReportAllocs() to every benchmark 2021-08-30 21:41:04 -07:00