[folks/wip/nielsdg/fix-ci-timeout] wip



commit 2be9e577d083de4a05732746cd37b7eb992916e8
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Fri Jun 5 13:36:39 2020 +0200

    wip

 tests/eds/add-persona.vala | 9 +++++++++
 tests/meson.build          | 1 +
 2 files changed, 10 insertions(+)
---
diff --git a/tests/eds/add-persona.vala b/tests/eds/add-persona.vala
index ce64ce19..88f2cc63 100644
--- a/tests/eds/add-persona.vala
+++ b/tests/eds/add-persona.vala
@@ -279,6 +279,8 @@ public class AddPersonaTests : EdsTest.TestCase
 
       uint num_replaces = 0;
 
+      message ("YYYYYY individuals changed");
+
       foreach (var i in added)
         {
           if (i == null)
@@ -286,9 +288,11 @@ public class AddPersonaTests : EdsTest.TestCase
               continue;
             }
 
+          debug_here();
           num_replaces = this._track_individual (i);
         }
 
+          debug_here();
       assert (removed.size <= num_replaces + 1);
     }
 
@@ -303,9 +307,12 @@ public class AddPersonaTests : EdsTest.TestCase
           assert (this._individual_received == null ||
               this._individual_received.id == i.id);
 
+          debug_here();
+
           /* handle replacement */
           if (this._individual_received != null)
             {
+              debug_here();
               i.notify["full-name"].disconnect (this._notify_cb);
               i.notify["nickname"].disconnect (this._notify_cb);
               i.notify["email-addresses"].disconnect (this._notify_cb);
@@ -338,6 +345,7 @@ public class AddPersonaTests : EdsTest.TestCase
           i.notify["roles"].connect (this._notify_cb);
           i.notify["is-favourite"].connect (this._notify_cb);
 
+          debug_here();
           this._check_properties.begin (i);
         }
 
@@ -346,6 +354,7 @@ public class AddPersonaTests : EdsTest.TestCase
 
   private void _notify_cb (Object individual_obj, ParamSpec ps)
     {
+      message ("_notify_cb called for ps '%s'", ps.get_name());
       Folks.Individual i = (Folks.Individual) individual_obj;
       this._check_properties.begin (i);
     }
diff --git a/tests/meson.build b/tests/meson.build
index 6a7fa29c..3ac3ec49 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -26,6 +26,7 @@ common_test_vala_flags = [
 
 common_test_environment = environment()
 common_test_environment.append('FOLKS_BACKEND_PATH', folks_backend_path_uninstalled)
+common_test_environment.append('G_MESSAGES_DEBUG', 'all')
 
 # The tests, grouped in a directory per backend
 subdir('dummy')


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