]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix failing auth-source test
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 26 Apr 2021 23:27:58 +0000 (01:27 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 26 Apr 2021 23:27:58 +0000 (01:27 +0200)
* test/lisp/auth-source-tests.el
(auth-source-test-secrets-create-secret): Fix test failing because
the mocked `read-string' had the wrong interface.

test/lisp/auth-source-tests.el

index 19216d3c24ab19dac9c0ed9e59eaa9a88f9d4f96..1c4bd8d36d4402602121f0ca3592310a69e23a4f 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 _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))))