[jsonrpc-glib] testsuite: raise priority of idle to close socket



commit 2251592127cbba7d9e6c7bdcef51f8f503f7c02b
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 19 11:47:03 2022 -0700

    testsuite: raise priority of idle to close socket
    
    This fixes an issue on single threaded systems when running the stress
    test where cancellation did not happen in the right order compared to
    the tasks being executed/completed.
    
    Fixes #2

 tests/test-stress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/test-stress.c b/tests/test-stress.c
index 432504e..c1dd727 100644
--- a/tests/test-stress.c
+++ b/tests/test-stress.c
@@ -81,7 +81,7 @@ server_handle_reply_cb (JsonrpcClient *client,
       /* Close might error, but the tasks are always
        * flushed and cancelled.
        */
-      g_idle_add_full (G_PRIORITY_LOW + 1000,
+      g_idle_add_full (G_PRIORITY_DEFAULT,
                        close_in_idle,
                        g_object_ref (client),
                        g_object_unref);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]