summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2018-08-29 16:16:34 +0200
committerVictor Toso <me@victortoso.com>2018-08-30 09:15:11 +0200
commit4b3e388f18d6c187175cbf0326227e2feabc55cd (patch)
treedb3e2f2967713ef4b81a1dc31c9caf91b16a802a
parent19126d7cf8c9b37bb5f35c63dd2b32e7e7ea0e25 (diff)
downloadgrilo-4b3e388f18d6c187175cbf0326227e2feabc55cd.tar.gz
tests: run on ipv4 to avoid CI failure
Otherwise we would get: ERROR:../tests/lib-net.c:162:test_net_wc_small_throttling: assertion failed (error == NULL): Could not listen on address ::1, port 42775: Error binding to address: Cannot assign requested address (g-io-error-quark, 0) Related: https://gitlab.gnome.org/Infrastructure/GitLab/issues/313 Signed-off-by: Victor Toso <victortoso@gnome.org>
-rw-r--r--tests/lib-net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib-net.c b/tests/lib-net.c
index 61858b5..2857310 100644
--- a/tests/lib-net.c
+++ b/tests/lib-net.c
@@ -158,7 +158,7 @@ test_net_wc_small_throttling (Fixture *f,
GError *error = NULL;
soup_server_add_handler (f->server, NULL, soup_server_throttling_cb, NULL, NULL);
- soup_server_listen_local (f->server, 0, 0, &error);
+ soup_server_listen_local (f->server, 0, SOUP_SERVER_LISTEN_IPV4_ONLY, &error);
g_assert_no_error (error);
uris = soup_server_get_uris (f->server);
@@ -198,7 +198,7 @@ test_net_wc_big_throttling (Fixture *f,
GError *error = NULL;
soup_server_add_handler (f->server, NULL, soup_server_throttling_cb, NULL, NULL);
- soup_server_listen_local (f->server, 0, 0, &error);
+ soup_server_listen_local (f->server, 0, SOUP_SERVER_LISTEN_IPV4_ONLY, &error);
g_assert_no_error (error);
uris = soup_server_get_uris (f->server);
@@ -240,7 +240,7 @@ test_net_wc_no_throttling_stress (Fixture *f,
/* Create SoupServer with simple callback to reply */
soup_server_add_handler (f->server, NULL, soup_server_throttling_cb, NULL, NULL);
- soup_server_listen_local (f->server, 0, 0, &error);
+ soup_server_listen_local (f->server, 0, SOUP_SERVER_LISTEN_IPV4_ONLY, &error);
g_assert_no_error (error);
uris = soup_server_get_uris (f->server);