[evolution-data-server/openismus-work] Updated test-client-write-write.c to watch for the new E_CLIENT_ERROR_OUT_OF_SYNC
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work] Updated test-client-write-write.c to watch for the new E_CLIENT_ERROR_OUT_OF_SYNC
- Date: Fri, 7 Dec 2012 07:53:23 +0000 (UTC)
commit d39c8b110f2bde77c35953f68a1e4eaa8ebdae1e
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]