[folks] eds test: Ensure the source is declared enabled



commit a4759c93833422065f55519780148de4dc914c40
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Fri Feb 8 09:28:22 2013 -0800

    eds test: Ensure the source is declared enabled
    
    This seems to fix the problem with create-remove-stores from failing
    sporadically. And it matches all the sample sources used in e-d-s itself.
    
    I also added a trailing \n to match them as well (though it doesn't seem to
    have any obvious effect).
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=693435

 NEWS                       |    1 +
 tests/lib/eds/backend.vala |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 7193d6b..8f8ff2a 100644
--- a/NEWS
+++ b/NEWS
@@ -33,6 +33,7 @@ Bugs fixed:
 â Bug 691382 â Restore tests disabled by bug #668415 (which has been fixed)
 â Bug 691923 â Don't rebuild docs on every "make" run
 â Bug 692122 â build: Don't use make functions for defining TESTS
+â Bug 693435 â eds test: create-remove-stores fails sporadically
 
 API changes:
 â Add Backend.enable_persona_store and disable_persona_store.
diff --git a/tests/lib/eds/backend.vala b/tests/lib/eds/backend.vala
index 40a04f2..56626ae 100644
--- a/tests/lib/eds/backend.vala
+++ b/tests/lib/eds/backend.vala
@@ -155,10 +155,11 @@ public class EdsTest.Backend
 
       var source_file_content = ("[Data Source]\n" +
           "DisplayName=%s\n" +
+          "Enabled=true\n" +
           "Parent=local-stub\n" +
           "\n" +
           "[Address Book]\n" +
-          "BackendName=local").printf (this._addressbook_name);
+          "BackendName=local\n").printf (this._addressbook_name);
 
       /* Build a SourceRegistry to manage the sources. */
       this._source_registry = yield create_source_registry (null);


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