From 43934b019874eb6490f1df72d3d6dbb5fd034234 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 27 Oct 2011 08:52:36 +0100 Subject: 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. --- gdata/tests/contacts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdata') 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"); -- cgit v1.2.1