[evolution-data-server/gnome-3-26] Bug 787266 - Failure in installed tests



commit c49bdaef6de8b3409608b7d0b1b7ae8caff53390
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 11 16:09:25 2017 +0200

    Bug 787266 - Failure in installed tests

 tests/libebook/client/test-book-client-self.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/libebook/client/test-book-client-self.c b/tests/libebook/client/test-book-client-self.c
index 0cfd2c3..a1537b9 100644
--- a/tests/libebook/client/test-book-client-self.c
+++ b/tests/libebook/client/test-book-client-self.c
@@ -61,6 +61,14 @@ test_set_self (ETestServerFixture *fixture,
        if (!client)
                g_error ("Error connecting to system addressbook: %s", error->message);
 
+       /* Just a safety check which applies when running with installed services */
+       if (e_book_client_get_contact_sync (client, "simple-1", &loaded_contact, NULL, NULL)) {
+               g_clear_object (&loaded_contact);
+
+               e_book_client_remove_contact_by_uid_sync (client, "simple-1", NULL, &error);
+               g_assert_no_error (error);
+       }
+
        /* Add contact to addressbook */
        g_assert (add_contact_from_test_case_verify (client, "simple-1", &loaded_contact));
 


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