tests: Give more leeway in rx/event-t 60/14160/2
authorAndrew Deason <adeason@dson.org>
Sat, 25 Apr 2020 23:21:10 +0000 (18:21 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 1 May 2020 21:37:05 +0000 (17:37 -0400)
commitebaefc5a06fb3b559ce3649676197d0a989efbde
tree92fd312f086301b159a5ed99acae426e83cc1d34
parent2b4908d3be8c4bde135d836ccc4ca96e465628c3
tests: Give more leeway in rx/event-t

Currently, the rx/event-t tests schedule a bunch of events up to 3
seconds in the future, and then we sleep for 3 seconds to give them a
chance to run. Since we're cutting it so close, this can rarely result
in a few events not being run (observed occasionally on FreeBSD 12.1,
where we failed to run about 3 events out of 10000).

To avoid this, just sleep for 4 seconds instead of 3. Also print out a
little more info regarding the number of fired/cancelled events, so we
can see the event count when it's wrong.

Change-Id: I6269bea2c245aeed00c129ff638423d0fa81ad23
Reviewed-on: https://gerrit.openafs.org/14160
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
tests/rx/event-t.c