]> git.eshelyaron.com Git - emacs.git/commitdiff
Clear netrc cache in auth-source test
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 03:59:11 +0000 (05:59 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 21 Sep 2021 03:59:11 +0000 (05:59 +0200)
* test/lisp/auth-source-tests.el
(auth-source-test-netrc-create-secret): Clear the netrc cache, too.

test/lisp/auth-source-tests.el

index 438f6ebbed11dc5d74074dc2db94c81706db109c..5140970b0b6ac3af9cbfbdf7f3f3c5cac8f48454 100644 (file)
                   (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)
 
             ;; 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)