From 95e218af145d843750c9f05ae7682230a36044a6 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Tue, 26 Nov 2019 19:07:42 +0100 Subject: [PATCH] Use 127.0.0.1 in nsm-tests 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lisp/net/nsm-tests.el b/test/lisp/net/nsm-tests.el index bf6ac04b527..f3544370389 100644 --- a/test/lisp/net/nsm-tests.el +++ b/test/lisp/net/nsm-tests.el @@ -42,11 +42,11 @@ (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 -- 2.39.5