summaryrefslogtreecommitdiff
path: root/tests/context-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/context-test.c
parent2c29072c807554894d31a15d5d01ebd8b8758fd5 (diff)
downloadlibsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.tar.gz
libsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.tar.bz2
libsoup-e9ba1d1933517fa83bfefe7c6de52f0715f62b40.zip
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/context-test.c')
-rw-r--r--tests/context-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/context-test.c b/tests/context-test.c
index 6cd9ec7c..fc203b30 100644
--- a/tests/context-test.c
+++ b/tests/context-test.c
@@ -263,7 +263,7 @@ main (int argc, char **argv)
server = soup_test_server_new (TRUE);
soup_server_add_handler (server, NULL, server_callback, NULL, NULL);
- base_uri = g_strdup_printf ("http://localhost:%u/",
+ base_uri = g_strdup_printf ("http://127.0.0.1:%u/",
soup_server_get_port (server));
do_test1 ();