mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Clear netrc cache in auth-source test
* test/lisp/auth-source-tests.el (auth-source-test-netrc-create-secret): Clear the netrc cache, too.
This commit is contained in:
parent
bbef979ae1
commit
0619da0d82
1 changed files with 2 additions and 2 deletions
|
|
@ -376,8 +376,7 @@
|
|||
(md5 (concat (prin1-to-string process-environment) passwd))
|
||||
auth-info
|
||||
(car (auth-source-search
|
||||
:max 1 :host host :require '(:user :secret) :create t
|
||||
:type 'netrc))
|
||||
:max 1 :host host :require '(:user :secret) :create t))
|
||||
auth-passwd (plist-get auth-info :secret)
|
||||
auth-passwd (if (functionp auth-passwd)
|
||||
(funcall auth-passwd)
|
||||
|
|
@ -390,6 +389,7 @@
|
|||
|
||||
;; Check, that the item has been created indeed.
|
||||
(auth-source-forget+ :host t)
|
||||
(setq auth-source-netrc-cache nil)
|
||||
(setq auth-info (car (auth-source-search :host host))
|
||||
auth-passwd (plist-get auth-info :secret)
|
||||
auth-passwd (if (functionp auth-passwd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue