summaryrefslogtreecommitdiff
path: root/gdata
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-10-27 08:52:36 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2011-10-27 08:52:36 +0100
commit43934b019874eb6490f1df72d3d6dbb5fd034234 (patch)
treebe7e9bb69f665c17d5d3903002e0d10769a9372c /gdata
parent95033d02d73a9d7b6e95d4e201c7f53c60b048af (diff)
downloadlibgdata-43934b019874eb6490f1df72d3d6dbb5fd034234.tar.gz
contacts: Slightly relax a test condition
Instead of requiring that a contact's creation date be at or after its last edit date, require that the last edit date be within 5 seconds after the contact's creation date.
Diffstat (limited to 'gdata')
-rw-r--r--gdata/tests/contacts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdata/tests/contacts.c b/gdata/tests/contacts.c
index d693f972..8a8acdf5 100644
--- a/gdata/tests/contacts.c
+++ b/gdata/tests/contacts.c
@@ -414,7 +414,8 @@ test_contact_insert (InsertData *data, gconstpointer service)
/* Check its edited date */
edited = gdata_contacts_contact_get_edited (contact);
creation_time = gdata_contacts_contact_get_edited (new_contact);
- g_assert_cmpint (creation_time, >=, edited);
+ g_assert_cmpint (creation_time + 5, >=, edited);
+ g_assert_cmpint (creation_time, <=, edited);
/* Various properties */
g_assert_cmpstr (gdata_contacts_contact_get_nickname (new_contact), ==, "Big J");