]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix a test in auth-source-tests.el
authorAndrea Corallo <akrl@sdf.org>
Fri, 18 Dec 2020 14:22:41 +0000 (15:22 +0100)
committerAndrea Corallo <akrl@sdf.org>
Mon, 21 Dec 2020 19:22:03 +0000 (20:22 +0100)
* test/lisp/auth-source-tests.el
(auth-source-test-secrets-create-secret): Redefine `read-string'
respecting the original number of arguments.

test/lisp/auth-source-tests.el

index deb1b91aab2087e9969be0a748ed485abc7c3af6..4c3005c3efea9adfdb153bb992fff22898186c44 100644 (file)
     ;; 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))))