emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 89dbd08: Fix previous network stream test


From: Lars Ingebrigtsen
Subject: master 89dbd08: Fix previous network stream test
Date: Tue, 4 Aug 2020 11:34:33 -0400 (EDT)

branch: master
commit 89dbd0838b980f6ef58fa0f614bd743f86ec1c74
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix previous network stream test
    
    * 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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/lisp/net/network-stream-tests.el 
b/test/lisp/net/network-stream-tests.el
index f44682e..cf41615 100644
--- a/test/lisp/net/network-stream-tests.el
+++ b/test/lisp/net/network-stream-tests.el
@@ -142,8 +142,8 @@
                          ;; 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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]