[libgdata/libgdata-0-7] documents: Don't fail the batch tests if cleaning up fails



commit 19f82923ced02788884cc800de66a3d161559aee
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Dec 9 14:22:09 2010 +0000

    documents: Don't fail the batch tests if cleaning up fails

 gdata/tests/documents.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gdata/tests/documents.c b/gdata/tests/documents.c
index 155e422..dde7546 100644
--- a/gdata/tests/documents.c
+++ b/gdata/tests/documents.c
@@ -851,10 +851,8 @@ teardown_batch_async (BatchAsyncData *data, gconstpointer service)
 	g_assert_no_error (error);
 	g_clear_error (&error);
 
-	/* Delete the document */
-	g_assert (gdata_service_delete_entry (GDATA_SERVICE (service), document, NULL, &error) == TRUE);
-	g_assert_no_error (error);
-	g_clear_error (&error);
+	/* Delete the document (we don't care if this fails) */
+	gdata_service_delete_entry (GDATA_SERVICE (service), document, NULL, NULL);
 
 	g_object_unref (data->new_doc);
 	g_object_unref (document);



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