]> git.eshelyaron.com Git - emacs.git/commitdiff
Use 127.0.0.1 in nsm-tests
authorRobert Pluim <rpluim@gmail.com>
Tue, 26 Nov 2019 18:07:42 +0000 (19:07 +0100)
committerRobert Pluim <rpluim@gmail.com>
Tue, 26 Nov 2019 18:27:06 +0000 (19:27 +0100)
Winsock doesn't like "127.1"

* test/lisp/net/nsm-tests.el (nsm-check-local-subnet-ipv4): Spell
numeric localhost as "127.0.0.1" instead of "127.1".

test/lisp/net/nsm-tests.el

index bf6ac04b5270be31e9e64c8a51288069e8630f63..f3544370389965a3560dab1fa0c7d201c262d514 100644 (file)
     (should-error (nsm-network-same-subnet local-ip wrong-length-mask remote-ip-yes))
     (should (eq nil (nsm-network-same-subnet local-ip wrong-mask remote-ip-yes)))
     (should (eq t (nsm-should-check "google.com")))
-    (should (eq t (nsm-should-check "127.1")))
+    (should (eq t (nsm-should-check "127.0.0.1")))
     (should (eq t (nsm-should-check "localhost")))
     (let ((nsm-trust-local-network t))
       (should (eq t (nsm-should-check "google.com")))
-      (should (eq nil (nsm-should-check "127.1")))
+      (should (eq nil (nsm-should-check "127.0.0.1")))
       (should (eq nil (nsm-should-check "localhost"))))))
 
 ;; FIXME This will never return true, since