[libgdata] tests: Add a sleep() in the PicasaWeb tests to work around DS bugs



commit bf973f6f7e663dd3c18d965fdcad69775a734cbb
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Aug 2 11:59:01 2013 +0200

    tests: Add a sleep() in the PicasaWeb tests to work around DS bugs

 gdata/tests/picasaweb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index 708e48d..d289685 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -497,6 +497,9 @@ tear_down_query_files (QueryFilesData *data, gconstpointer service)
        g_object_unref (data->file2);
        g_object_unref (data->file1);
 
+       /* HACK! Wait for the distributed Google servers to synchronise. */
+       sleep (10);
+
        /* We have to re-query for the album, since its ETag will be out of date */
        album_feed = gdata_picasaweb_service_query_all_albums (GDATA_PICASAWEB_SERVICE (service), NULL, NULL, 
NULL, NULL, NULL, NULL);
        album = gdata_feed_look_up_entry (GDATA_FEED (album_feed), gdata_entry_get_id (GDATA_ENTRY 
(data->album)));


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