From e1562bbab333a96c492a9f181816e9e6f80ea0d0 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 27 Apr 2021 01:27:58 +0200 Subject: [PATCH] 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. --- test/lisp/auth-source-tests.el | 5 +++-- 1 file 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)))) -- 2.39.5