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

test/lisp/auth-source-tests.el

index 226bb69c46358c240ad4f5a85ec513f996cb3582..438f6ebbed11dc5d74074dc2db94c81706db109c 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))
+                        :max 1 :host host :require '(:user :secret) :create t
+                        :type 'netrc))
                  auth-passwd (plist-get auth-info :secret)
                  auth-passwd (if (functionp auth-passwd)
                                  (funcall auth-passwd)