]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous network stream test
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 4 Aug 2020 15:34:21 +0000 (17:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 4 Aug 2020 15:34:21 +0000 (17:34 +0200)
* test/lisp/net/network-stream-tests.el
(network-test--resolve-system-name): There's only one ipv6
localhost address.

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

index f44682e1edb44a611be68060d28fa4f30b74eba2..cf416155e5026a255c9ea6638ed88b29481ef0af 100644 (file)
                          ;; IPv4 localhost addresses start with 127.
                          (= (elt address 0) 127))
                     (and (= (length address) 9)
-                         ;; IPv6 localhost addresses start with 0.
-                         (= (elt address 0) 0)))
+                         ;; IPv6 localhost address.
+                         (equal address [0 0 0 0 0 0 0 1 0])))
            return t))
 
 (ert-deftest echo-server-with-dns ()