[folks] e-d-s: fix link personas test



commit 5a8328039777be00f44a73bf8c58f45bf1918a88
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Fri Aug 5 19:49:58 2011 +0100

    e-d-s: fix link personas test
    
    We've changed the way we set up the writeable store in
    commit 5c062183b (bug #654907) and that broke this test.

 tests/eds/link-personas.vala |    2 +-
 tests/lib/eds/backend.vala   |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/eds/link-personas.vala b/tests/eds/link-personas.vala
index 44c66a7..5acf6ca 100644
--- a/tests/eds/link-personas.vala
+++ b/tests/eds/link-personas.vala
@@ -71,7 +71,7 @@ public class LinkPersonasTests : Folks.TestCase
       try
         {
           GConf.Value val = new GConf.Value (GConf.ValueType.STRING);
-          val.set_string ("eds");
+          val.set_string ("eds:%s".printf (EdsTest.Backend.address_book_uri));
           this._gconf_client.set (this._folks_config_key, val);
         }
       catch (GLib.Error e)
diff --git a/tests/lib/eds/backend.vala b/tests/lib/eds/backend.vala
index 466e62e..fe4902c 100644
--- a/tests/lib/eds/backend.vala
+++ b/tests/lib/eds/backend.vala
@@ -32,6 +32,7 @@ errordomain EdsTest.BackendSetupError
 
 public class EdsTest.Backend
 {
+  public const string address_book_uri = "local://test";
   private string _addressbook_name;
   private E.BookClient _addressbook;
   private GLib.List<string> _e_contacts;
@@ -112,7 +113,7 @@ public class EdsTest.Backend
       var base_uri = "local:";
       this._source_group = new E.SourceGroup ("Test", base_uri);
 
-      this._source = new E.Source ("Test", "local://test");
+      this._source = new E.Source ("Test", this.address_book_uri);
       if (this._source_group.add_source (this._source, -1))
         {
           try



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