[grilo] tests: run on ipv4 to avoid CI failure
- From: Victor Toso <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] tests: run on ipv4 to avoid CI failure
- Date: Thu, 30 Aug 2018 07:48:29 +0000 (UTC)
commit 4b3e388f18d6c187175cbf0326227e2feabc55cd
Author: Victor Toso <me victortoso com>
Date: Wed Aug 29 16:16:34 2018 +0200
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>
tests/lib-net.c | 6 +++---
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]