diff options
| author | F. Jason Park | 2022-11-16 01:21:20 -0800 |
|---|---|---|
| committer | F. Jason Park | 2022-11-16 21:34:36 -0800 |
| commit | 4351fb7161f9490f21281b0b0abfd5854dc2f2ea (patch) | |
| tree | 364a622a5bb0c6c651321d337eeba83177153382 | |
| parent | c5d91358b594e057e37ea557923e6aa9d85b61e1 (diff) | |
| download | emacs-4351fb7161f9490f21281b0b0abfd5854dc2f2ea.tar.gz emacs-4351fb7161f9490f21281b0b0abfd5854dc2f2ea.zip | |
; Make some ERC test fixtures a bit more courteous
* test/lisp/erc/erc-dcc-tests.el (erc-dcc-tests--pcomplete-common):
Only emit messages when interactive.
* test/lisp/erc/resources/erc-d/erc-d-tests.el
(erc-d-tests-with-server): Shadow `erc-after-connect' so
`erc-autojoin-channels' doesn't affect other tests.
test/lisp/erc/resources/erc-scenarios-common.el
(erc-scenarios-common--make-bindings): Shadow `erc-after-connect' here
as well. Also require erc instead of erc-backend to silence some new
compiler warnings the cropped up after the creation of erc-common.el.
| -rw-r--r-- | test/lisp/erc/erc-dcc-tests.el | 3 | ||||
| -rw-r--r-- | test/lisp/erc/resources/erc-d/erc-d-tests.el | 1 | ||||
| -rw-r--r-- | test/lisp/erc/resources/erc-scenarios-common.el | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/test/lisp/erc/erc-dcc-tests.el b/test/lisp/erc/erc-dcc-tests.el index 8645d7f1044..74cbb7d9476 100644 --- a/test/lisp/erc/erc-dcc-tests.el +++ b/test/lisp/erc/erc-dcc-tests.el | |||
| @@ -167,7 +167,8 @@ | |||
| 167 | 167 | ||
| 168 | (defun erc-dcc-tests--pcomplete-common (test-fn) | 168 | (defun erc-dcc-tests--pcomplete-common (test-fn) |
| 169 | (with-current-buffer (get-buffer-create "*erc-dcc-do-GET-command*") | 169 | (with-current-buffer (get-buffer-create "*erc-dcc-do-GET-command*") |
| 170 | (let* ((proc (start-process "fake" (current-buffer) "sleep" "10")) | 170 | (let* ((inhibit-message noninteractive) |
| 171 | (proc (start-process "fake" (current-buffer) "sleep" "10")) | ||
| 171 | (elt (list :nick "tester!~tester@fake.irc" | 172 | (elt (list :nick "tester!~tester@fake.irc" |
| 172 | :type 'GET | 173 | :type 'GET |
| 173 | :peer nil | 174 | :peer nil |
diff --git a/test/lisp/erc/resources/erc-d/erc-d-tests.el b/test/lisp/erc/resources/erc-d/erc-d-tests.el index a4befd96b5e..8dd5cef7aa2 100644 --- a/test/lisp/erc/resources/erc-d/erc-d-tests.el +++ b/test/lisp/erc/resources/erc-d/erc-d-tests.el | |||
| @@ -562,6 +562,7 @@ DUMB-SERVER-VAR are bound accordingly in BODY." | |||
| 562 | ;; | 562 | ;; |
| 563 | (erc-server-flood-penalty 0.05) | 563 | (erc-server-flood-penalty 0.05) |
| 564 | erc-autojoin-channels-alist | 564 | erc-autojoin-channels-alist |
| 565 | erc-after-connect | ||
| 565 | erc-server-auto-reconnect) | 566 | erc-server-auto-reconnect) |
| 566 | (should-not erc-d--slow-mo) | 567 | (should-not erc-d--slow-mo) |
| 567 | (with-current-buffer "*erc-d-server*" (erc-d-t-search-for 4 "Starting")) | 568 | (with-current-buffer "*erc-d-server*" (erc-d-t-search-for 4 "Starting")) |
diff --git a/test/lisp/erc/resources/erc-scenarios-common.el b/test/lisp/erc/resources/erc-scenarios-common.el index bc2cb68cd86..ef65125241f 100644 --- a/test/lisp/erc/resources/erc-scenarios-common.el +++ b/test/lisp/erc/resources/erc-scenarios-common.el | |||
| @@ -73,7 +73,7 @@ | |||
| 73 | (require 'erc-d-t) | 73 | (require 'erc-d-t) |
| 74 | (require 'erc-d))) | 74 | (require 'erc-d))) |
| 75 | 75 | ||
| 76 | (require 'erc-backend) | 76 | (require 'erc) |
| 77 | 77 | ||
| 78 | (eval-when-compile (require 'erc-join) | 78 | (eval-when-compile (require 'erc-join) |
| 79 | (require 'erc-services)) | 79 | (require 'erc-services)) |
| @@ -125,6 +125,7 @@ | |||
| 125 | (erc-auth-source-parameters-join-function nil) | 125 | (erc-auth-source-parameters-join-function nil) |
| 126 | (erc-autojoin-channels-alist nil) | 126 | (erc-autojoin-channels-alist nil) |
| 127 | (erc-server-auto-reconnect nil) | 127 | (erc-server-auto-reconnect nil) |
| 128 | (erc-after-connect nil) | ||
| 128 | (erc-d-linger-secs 10) | 129 | (erc-d-linger-secs 10) |
| 129 | ,@bindings))) | 130 | ,@bindings))) |
| 130 | 131 | ||