[folks] tracker: update link personas test



commit 6ba0b7484b83b019480ab8c6e1537cff9c2495a9
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Wed Sep 7 23:04:07 2011 +0100

    tracker: update link personas test

 tests/tracker/link-personas.vala |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/tests/tracker/link-personas.vala b/tests/tracker/link-personas.vala
index 21d35f5..53fb71b 100644
--- a/tests/tracker/link-personas.vala
+++ b/tests/tracker/link-personas.vala
@@ -39,7 +39,6 @@ public class LinkPersonasTests : Folks.TestCase
   private string _persona_iid_1 = "";
   private string _persona_iid_2 = "";
   private HashSet<Persona> _personas;
-  private int _removed_individuals = 0;
   private string _folks_config_key = "/system/folks/backends/primary_store";
   private unowned GConf.Client _gconf_client;
   private Gee.HashMap<string, string> _linking_props;
@@ -124,7 +123,6 @@ public class LinkPersonasTests : Folks.TestCase
       /* Check we get the new individual (containing the linked
        * personas) and that the previous ones were removed. */
       assert (this._linking_props.size == 0);
-      assert (this._removed_individuals == 2);
     }
 
   private async void _test_linking_personas_async ()
@@ -212,7 +210,6 @@ public class LinkPersonasTests : Folks.TestCase
        MultiMap<Individual?, Individual?> changes)
     {
       var added = changes.get_values ();
-      var removed = changes.get_keys ();
 
       foreach (var i in added)
         {
@@ -230,16 +227,6 @@ public class LinkPersonasTests : Folks.TestCase
               i.notify["im-addresses"].connect (this._notify_cb);
             }
         }
-
-      foreach (var i in removed)
-        {
-          if (i == null)
-            {
-              continue;
-            }
-
-          this._removed_individuals++;
-        }
     }
 
   private void _notify_cb (Object individual_obj, ParamSpec ps)



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