summaryrefslogtreecommitdiff
path: root/tests/ntlm-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2009-03-27 19:47:03 +0000
committerDan Winship <danw@src.gnome.org>2009-03-27 19:47:03 +0000
commite9ba1d1933517fa83bfefe7c6de52f0715f62b40 (patch)
tree36820931285ae580cb6f5f515398c62757333d9c /tests/ntlm-test.c
parent2c29072c807554894d31a15d5d01ebd8b8758fd5 (diff)
downloadlibsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.tar.gz
Bug 576583 - Tests fail if "localhost" resolves to ::1
* tests/*.c: Use "127.0.0.1" in URIs rather than "localhost", since the default SoupServer config only listen on IPv4 (qv bug 522519), and tests/httpd.conf.in only configures apache to listen on IPv4, and we don't handle multiple IP addresses (qv bug 526321) but the machine might be configured to return "::1" rather than "127.0.0.1" first for "localhost". Patch from Andreas Rottmann. svn path=/trunk/; revision=1257
Diffstat (limited to 'tests/ntlm-test.c')
-rw-r--r--tests/ntlm-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ntlm-test.c b/tests/ntlm-test.c
index a154cabc..4e8ace9a 100644
--- a/tests/ntlm-test.c
+++ b/tests/ntlm-test.c
@@ -419,7 +419,7 @@ main (int argc, char **argv)
loop = g_main_loop_new (NULL, TRUE);
- uri = soup_uri_new ("http://localhost/");
+ uri = soup_uri_new ("http://127.0.0.1/");
soup_uri_set_port (uri, soup_server_get_port (server));
do_ntlm_tests (uri);
soup_uri_free (uri);