1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

; Adjust sleep-for in erc-autojoin-channels tests

* test/lisp/erc/erc-join-tests.el
(erc-join-tests--autojoin-channels-ident): A `sleep-for' value of 0.01
caused associated tests to fail on at least one setup involving Solaris
10.  The new value is arbitrary and possibly temporary, pending further
investigation.  (Bug#79017)
This commit is contained in:
F. Jason Park 2025-07-29 14:54:18 -07:00
parent 3797484608
commit edd1f0512f

View file

@ -86,8 +86,7 @@
(with-timeout (5 (ert-fail "Timeout exceeded"))
(cl-letf* ((erc-autojoin-timing 'ident)
(erc-autojoin-delay 0.001)
(timer-list (copy-sequence timer-list))
(erc-autojoin-delay 0.0625)
(calls nil)
(check (lambda () (prog1 calls (setq calls nil))))
((symbol-function 'erc-server-send)
@ -99,7 +98,7 @@
(erc-autojoin-channels erc-server-announced-name "tester")
(should erc--autojoin-timer)
(sleep-for 0.01)
(sleep-for 0.25)
(funcall test check)
(should-not calls)