opnsense-src/tests/sys/kqueue
Gleb Smirnoff 994bec47ee tests/kqueue: repair flaky test
The test arms timer for 500 msec and then sleeps 1 second and expects that
the timer would always fire exactly 2 times.  However, it has a chance to
legitimately fire only once.  This makes the test flaky.  Fix the test
reducing sleep time down to 495 msec.

The problem started to show up recently, and I attribute that to
626ea75ed2.  Before this revision sleep(3) was almost always sleeping
over 1000 msec, now it can sleep exactly 1000 msec.

Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D50996
2025-06-24 15:29:03 -07:00
..
libkqueue tests/kqueue: repair flaky test 2025-06-24 15:29:03 -07:00
kqueue_fork.c kqueue tests: Add a regression test 2024-01-27 13:51:13 -05:00
kqueue_peek_signal.c Add a test for https://reviews.freebsd.org/D31858 (PR 258310) 2021-09-13 10:16:05 +01:00
Makefile kqueue tests: Add a regression test 2024-01-27 13:51:13 -05:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00