]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve previous change
authorRobert Pluim <rpluim@gmail.com>
Fri, 20 Jun 2025 10:01:59 +0000 (12:01 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 22 Jun 2025 08:08:59 +0000 (10:08 +0200)
* test/lisp/net/network-stream-tests.el
(network-test--resolve-system-name): Resolve addresses once not
twice.

(cherry picked from commit 04a1a53de19e74e06aba5c05f73aa6b1fdccae4f)

test/lisp/net/network-stream-tests.el

index 1684900f7db14f1a90d83b5a03924bd3047caf94..d868562f5cf4302053386123152adcfb1f87fab6 100644 (file)
 (defun network-test--resolve-system-name ()
   (let ((addresses (network-lookup-address-info (system-name))))
     (if addresses
-        (cl-loop for address in (network-lookup-address-info (system-name))
+        (cl-loop for address in addresses
                  when (or (and (= (length address) 5)
                                ;; IPv4 localhost addresses start with 127.
                                (= (elt address 0) 127))