aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-09-21 05:59:11 +0200
committerLars Ingebrigtsen2021-09-21 05:59:11 +0200
commit0619da0d82208431a13e43dd4e55a3daefe76551 (patch)
treec23e6b8d3115d146f58714d435965fdb81d4212c /test
parentbbef979ae191b107714fe41258bd6bf0ec956352 (diff)
downloademacs-0619da0d82208431a13e43dd4e55a3daefe76551.tar.gz
emacs-0619da0d82208431a13e43dd4e55a3daefe76551.zip
Clear netrc cache in auth-source test
* test/lisp/auth-source-tests.el (auth-source-test-netrc-create-secret): Clear the netrc cache, too.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/auth-source-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/auth-source-tests.el b/test/lisp/auth-source-tests.el
index 438f6ebbed1..5140970b0b6 100644
--- a/test/lisp/auth-source-tests.el
+++ b/test/lisp/auth-source-tests.el
@@ -376,8 +376,7 @@
376 (md5 (concat (prin1-to-string process-environment) passwd)) 376 (md5 (concat (prin1-to-string process-environment) passwd))
377 auth-info 377 auth-info
378 (car (auth-source-search 378 (car (auth-source-search
379 :max 1 :host host :require '(:user :secret) :create t 379 :max 1 :host host :require '(:user :secret) :create t))
380 :type 'netrc))
381 auth-passwd (plist-get auth-info :secret) 380 auth-passwd (plist-get auth-info :secret)
382 auth-passwd (if (functionp auth-passwd) 381 auth-passwd (if (functionp auth-passwd)
383 (funcall auth-passwd) 382 (funcall auth-passwd)
@@ -390,6 +389,7 @@
390 389
391 ;; Check, that the item has been created indeed. 390 ;; Check, that the item has been created indeed.
392 (auth-source-forget+ :host t) 391 (auth-source-forget+ :host t)
392 (setq auth-source-netrc-cache nil)
393 (setq auth-info (car (auth-source-search :host host)) 393 (setq auth-info (car (auth-source-search :host host))
394 auth-passwd (plist-get auth-info :secret) 394 auth-passwd (plist-get auth-info :secret)
395 auth-passwd (if (functionp auth-passwd) 395 auth-passwd (if (functionp auth-passwd)