summaryrefslogtreecommitdiff
path: root/tests/resource-test.c
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-03-15 02:48:06 -0700
committerPatrick Griffis <pgriffis@igalia.com>2020-09-19 15:41:24 -0700
commit423572c6ee808abec26e7a57cdf6a948d85c811c (patch)
tree3dad4df3833f104caf475c8efc52f82a1507a02c /tests/resource-test.c
parent728ea63a5e6c97c1def868a88e3ec34965b6cfd5 (diff)
downloadlibsoup-423572c6ee808abec26e7a57cdf6a948d85c811c.tar.gz
Remove SoupSessionAsync
Diffstat (limited to 'tests/resource-test.c')
-rw-r--r--tests/resource-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/resource-test.c b/tests/resource-test.c
index 4c184a88..e048a2c8 100644
--- a/tests/resource-test.c
+++ b/tests/resource-test.c
@@ -80,7 +80,7 @@ do_async_request (SoupRequest *request)
data.body = g_string_new (NULL);
soup_request_send_async (request, NULL, async_request_sent, &data);
- data.loop = g_main_loop_new (soup_session_get_async_context (soup_request_get_session (request)), TRUE);
+ data.loop = g_main_loop_new (g_main_context_get_thread_default (), TRUE);
g_main_loop_run (data.loop);
g_main_loop_unref (data.loop);
@@ -97,7 +97,6 @@ do_request (const char *uri_string, gconstpointer type)
GError *error = NULL;
session = soup_test_session_new (GPOINTER_TO_SIZE (type),
- SOUP_SESSION_USE_THREAD_CONTEXT, TRUE,
NULL);
request = soup_session_request (session, uri_string, &error);