[libgdata] calendar: Test with 2 calendars rather than 3
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] calendar: Test with 2 calendars rather than 3
- Date: Thu, 28 Jun 2012 20:20:51 +0000 (UTC)
commit 5407aa327fc94cd25e2e05773cf7afbb7092c188
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Jun 28 21:19:06 2012 +0100
calendar: Test with 2 calendars rather than 3
Googleâs poor little servers donât like 3 calendars being created in quick
succession (although they definitely used to be OK with it), resulting in
the calendar query tests failing.
Reduce the number of test calendars used for such tests to 2, rather than 3.
That should hopefully fix the problem, although I canât test the fix works
completely because Iâve run out of GData query quota for the day.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=679072
gdata/tests/calendar.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gdata/tests/calendar.c b/gdata/tests/calendar.c
index b9e7a8e..186e6f4 100644
--- a/gdata/tests/calendar.c
+++ b/gdata/tests/calendar.c
@@ -128,7 +128,6 @@ G_STMT_START {
typedef struct {
GDataCalendarCalendar *calendar1;
GDataCalendarCalendar *calendar2;
- GDataCalendarCalendar *calendar3;
} QueryCalendarsData;
static void
@@ -159,16 +158,6 @@ set_up_query_calendars (QueryCalendarsData *data, gconstpointer service)
GDATA_ENTRY (calendar), NULL, NULL));
g_assert (GDATA_IS_CALENDAR_CALENDAR (data->calendar2));
g_object_unref (calendar);
-
- calendar = gdata_calendar_calendar_new (NULL);
- gdata_entry_set_title (GDATA_ENTRY (calendar), "Test Calendar 3");
- gdata_calendar_calendar_set_color (calendar, &colour);
- data->calendar3 = GDATA_CALENDAR_CALENDAR (gdata_service_insert_entry (GDATA_SERVICE (service),
- gdata_calendar_service_get_primary_authorization_domain (),
- "https://www.google.com/calendar/feeds/default/owncalendars/full",
- GDATA_ENTRY (calendar), NULL, NULL));
- g_assert (GDATA_IS_CALENDAR_CALENDAR (data->calendar3));
- g_object_unref (calendar);
}
static void
@@ -182,10 +171,6 @@ tear_down_query_calendars (QueryCalendarsData *data, gconstpointer service)
g_assert (gdata_service_delete_entry (GDATA_SERVICE (service), gdata_calendar_service_get_primary_authorization_domain (),
GDATA_ENTRY (data->calendar2), NULL, NULL) == TRUE);
g_object_unref (data->calendar2);
-
- g_assert (gdata_service_delete_entry (GDATA_SERVICE (service), gdata_calendar_service_get_primary_authorization_domain (),
- GDATA_ENTRY (data->calendar3), NULL, NULL) == TRUE);
- g_object_unref (data->calendar3);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]