[glib: 1/3] tests: Bump the refcount timeout in gdbus-threading



commit cfe8d423d4035fde644cf0d046aa59915036bcdd
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Feb 24 10:50:35 2020 +0000

    tests: Bump the refcount timeout in gdbus-threading
    
    Currently the test waits for 1s before deciding that a refcount has been
    leaked. But slow test machines might take longer than that between
    scheduling different threads to sort out the refcount, so increase the
    timeout.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Helps: #1515

 gio/tests/gdbus-threading.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/gdbus-threading.c b/gio/tests/gdbus-threading.c
index 0a2fe281f..9eebe27df 100644
--- a/gio/tests/gdbus-threading.c
+++ b/gio/tests/gdbus-threading.c
@@ -57,7 +57,7 @@ assert_connection_has_one_ref (GDBusConnection *connection,
   if (g_atomic_int_get (&G_OBJECT (connection)->ref_count) == 1)
     return;
 
-  timeout_source = g_timeout_source_new_seconds (1);
+  timeout_source = g_timeout_source_new_seconds (3);
   g_source_set_callback (timeout_source, timeout_cb, &data, NULL);
   g_source_attach (timeout_source, context);
 


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