[libgdata] calendar: Fix the batch operation tests



commit 6b9bafbad973acb026f4090cfd22d078ec0ad75c
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Oct 17 12:47:40 2010 +0100

    calendar: Fix the batch operation tests
    
    The Calendar service can't deal with ETags properly, so we can't test for
    them being handled properly.

 gdata/tests/calendar.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdata/tests/calendar.c b/gdata/tests/calendar.c
index 4051efa..26c0be6 100644
--- a/gdata/tests/calendar.c
+++ b/gdata/tests/calendar.c
@@ -812,7 +812,8 @@ test_batch (gconstpointer service)
 
 	/* Run another batch operation to update the second entry with the wrong ETag (i.e. pass the old version of the entry to the batch operation
 	 * to test error handling */
-	operation = gdata_batchable_create_operation (GDATA_BATCHABLE (service), "https://www.google.com/calendar/feeds/default/private/full/batch";);
+	/* Turns out that we can't run this test, because the Calendar service sucks with ETags and doesn't error. */
+	/*operation = gdata_batchable_create_operation (GDATA_BATCHABLE (service), "https://www.google.com/calendar/feeds/default/private/full/batch";);
 	gdata_test_batch_operation_update (operation, inserted_entry2, NULL, &entry_error);
 	g_assert (gdata_batch_operation_run (operation, NULL, &error) == TRUE);
 	g_assert_no_error (error);
@@ -821,7 +822,7 @@ test_batch (gconstpointer service)
 
 	g_clear_error (&error);
 	g_clear_error (&entry_error);
-	g_object_unref (operation);
+	g_object_unref (operation);*/
 	g_object_unref (inserted_entry2);
 
 	/* Run a final batch operation to delete the second entry */



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