* Fix a test in auth-source-tests.el
* test/lisp/auth-source-tests.el (auth-source-test-secrets-create-secret): Redefine `read-string' respecting the original number of arguments.
This commit is contained in:
parent
ebf8963a91
commit
9676e4d776
1 changed files with 2 additions and 1 deletions
|
@ -320,7 +320,8 @@
|
|||
;; 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) default)))
|
||||
(lambda (_prompt _initial _history default _inherit-input-method)
|
||||
default)))
|
||||
(setq auth-info
|
||||
(car (auth-source-search
|
||||
:max 1 :host host :require '(:user :secret) :create t))))
|
||||
|
|
Loading…
Add table
Reference in a new issue