[libsoup] http2-test: wait for last request to complete in connections test
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] http2-test: wait for last request to complete in connections test
- Date: Mon, 24 May 2021 10:56:04 +0000 (UTC)
commit 3033e87b9fe1cf97ccf87e875c0f67a6ff8f7347
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon May 24 12:32:26 2021 +0200
http2-test: wait for last request to complete in connections test
tests/http2-test.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/tests/http2-test.c b/tests/http2-test.c
index 2d3906d8..dd3214a6 100644
--- a/tests/http2-test.c
+++ b/tests/http2-test.c
@@ -457,6 +457,9 @@ do_connections_test (Test *test, gconstpointer data)
soup_session_send_async (test->session, msg, G_PRIORITY_DEFAULT, NULL, on_send_ready,
&complete_count);
g_object_unref (msg);
+ while (complete_count != N_TESTS + 1)
+ g_main_context_iteration (async_context, TRUE);
+
while (g_main_context_pending (async_context))
g_main_context_iteration (async_context, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]