Commit 4b3e388f authored by Victor Toso's avatar Victor Toso

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: Infrastructure/GitLab#313Signed-off-by: Victor Toso's avatarVictor Toso <victortoso@gnome.org>
parent 19126d7c
Pipeline #27535 passed with stage
in 3 minutes and 27 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment