[libsoup/carlosgc/unskip-tests: 1/2] cache-test: fix session extra reference on end
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/unskip-tests: 1/2] cache-test: fix session extra reference on end
- Date: Wed, 24 Feb 2021 12:54:54 +0000 (UTC)
commit 9d77df1c21d215ba7a74491bd39985ac8ebc0815
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Feb 23 16:00:43 2021 +0100
cache-test: fix session extra reference on end
Just iterate the main loop to ensure the message finishes.
tests/cache-test.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tests/cache-test.c b/tests/cache-test.c
index 361d1136..a0d99686 100644
--- a/tests/cache-test.c
+++ b/tests/cache-test.c
@@ -597,10 +597,8 @@ do_refcounting_test (gconstpointer data)
g_object_unref (cache);
g_free (cache_dir);
- g_test_skip ("FIXME: Session has 1 ref at the end, SessionAsync had a different clear_message
function with different semantics.");
-
- return;
-
+ while (g_main_context_pending (NULL))
+ g_main_context_iteration (NULL, FALSE);
soup_test_session_abort_unref (session);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]