You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
mono all: add (*testing.B).ReportAllocs() to every benchmark 3 years ago
rate tstime/rate: deflake TestLongRunningQPS 3 years ago
jitter.go tstime: add RandomDurationBetween helper 4 years ago
jitter_test.go tstime: add RandomDurationBetween helper 4 years ago
tstime.go tstime: add Parse3339B, for byte slices 4 years ago
tstime_test.go all: add (*testing.B).ReportAllocs() to every benchmark 3 years ago