[folks] Update log handlers in the test suite



commit edd974508d3d92172df91d892a7be73bfada138b
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Oct 20 17:51:41 2010 +0100

    Update log handlers in the test suite
    
    Due to string changes in the rest of libfolks, the log handlers in the test
    suite need changing to fix the test suite. Helps: bgo#628883

 tests/telepathy/individual-properties.vala      |   15 ++++++---------
 tests/telepathy/individual-retrieval.vala       |   10 ++++------
 tests/telepathy/persona-store-capabilities.vala |    5 ++---
 3 files changed, 12 insertions(+), 18 deletions(-)
---
diff --git a/tests/telepathy/individual-properties.vala b/tests/telepathy/individual-properties.vala
index a72cd5f..358bf1c 100644
--- a/tests/telepathy/individual-properties.vala
+++ b/tests/telepathy/individual-properties.vala
@@ -41,9 +41,8 @@ public class IndividualPropertiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* Set up the aggregator */
@@ -97,9 +96,8 @@ public class IndividualPropertiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* Set up the aggregator */
@@ -168,9 +166,8 @@ public class IndividualPropertiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* Set up the aggregator */
diff --git a/tests/telepathy/individual-retrieval.vala b/tests/telepathy/individual-retrieval.vala
index a644608..438019c 100644
--- a/tests/telepathy/individual-retrieval.vala
+++ b/tests/telepathy/individual-retrieval.vala
@@ -51,9 +51,8 @@ public class IndividualRetrievalTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* work on a copy so we can mangle it */
@@ -115,9 +114,8 @@ public class IndividualRetrievalTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       HashSet<string> added_individuals = new HashSet<string> ();
diff --git a/tests/telepathy/persona-store-capabilities.vala b/tests/telepathy/persona-store-capabilities.vala
index 2599679..94060c8 100644
--- a/tests/telepathy/persona-store-capabilities.vala
+++ b/tests/telepathy/persona-store-capabilities.vala
@@ -39,9 +39,8 @@ public class PersonaStoreCapabilitiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       var backend_store = BackendStore.dup ();



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