[evolution-data-server/openismus-work: 87/122] Updated test-client-write-write.c to watch for the new E_CLIENT_ERROR_OUT_OF_SYNC



commit fd7c3cdb07856a9240dc69a82c75637427f1aa9a
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Dec 7 16:49:51 2012 +0900

    Updated test-client-write-write.c to watch for the new E_CLIENT_ERROR_OUT_OF_SYNC

 tests/libebook/client/test-client-write-write.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libebook/client/test-client-write-write.c b/tests/libebook/client/test-client-write-write.c
index 1a708d7..db33bae 100644
--- a/tests/libebook/client/test-client-write-write.c
+++ b/tests/libebook/client/test-client-write-write.c
@@ -67,8 +67,8 @@ test_write_thread_contact_modified (GObject *source_object,
 		 * contact again first: The backend is telling us that this commit would have
 		 * caused some data loss since we dont have the right contact in the first place.
 		 */
-		if (error->domain == E_DATA_BOOK_ERROR &&
-		    error->code == E_DATA_BOOK_STATUS_BAD_REVISION)
+		if (g_error_matches (error, E_CLIENT_ERROR,
+				     E_CLIENT_ERROR_OUT_OF_SYNC))
 			retry = TRUE;
 		else 
 			g_error ("Error updating '%s' field: %s\n",



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