summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-04-27 01:27:58 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-04-27 01:27:58 +0200
commite1562bbab333a96c492a9f181816e9e6f80ea0d0 (patch)
treef40761c7720f4da064658ded79df1dc725d2dff2 /test
parentcbd95b9a415f814fcc3c36dfd7f52a2dd9679d8e (diff)
downloademacs-e1562bbab333a96c492a9f181816e9e6f80ea0d0.tar.gz
Fix failing auth-source test
* test/lisp/auth-source-tests.el (auth-source-test-secrets-create-secret): Fix test failing because the mocked `read-string' had the wrong interface.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/auth-source-tests.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lisp/auth-source-tests.el b/test/lisp/auth-source-tests.el
index 19216d3c24a..1c4bd8d36d4 100644
--- a/test/lisp/auth-source-tests.el
+++ b/test/lisp/auth-source-tests.el
@@ -320,8 +320,9 @@
;; Redefine `read-*' in order to avoid interactive input.
(cl-letf (((symbol-function 'read-passwd) (lambda (_) passwd))
((symbol-function 'read-string)
- (lambda (_prompt _initial _history default _inherit-input-method)
- default)))
+ (lambda (_prompt &optional _initial _history default
+ _inherit-input-method)
+ default)))
(setq auth-info
(car (auth-source-search
:max 1 :host host :require '(:user :secret) :create t))))