[libgdata] Bug 604313 — Test failures in 0.5.1



commit fa135b0da0df85f751af84d136cce9a68e707a23
Author: Richard Schwarting <rschwart src gnome org>
Date:   Fri Dec 11 11:27:45 2009 +1300

    Bug 604313 â?? Test failures in 0.5.1
    
    Google increased # of photos per album (hurrah), so update the tests
    to something a little more robust.  Closes: bgo#604313

 gdata/tests/picasaweb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index 627c1ce..7265f63 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -835,7 +835,7 @@ test_album (GDataService *service)
 	g_free (str);
 
 	g_assert_cmpuint (gdata_picasaweb_album_get_num_photos (album), ==, 1);
-	g_assert_cmpuint (gdata_picasaweb_album_get_num_photos_remaining (album), ==, 499);
+	g_assert_cmpuint (gdata_picasaweb_album_get_num_photos_remaining (album), >, 0); /* about 999 remaining, testing weakly to avoid having to update regularly */
 	g_assert_cmpuint (gdata_picasaweb_album_get_bytes_used (album), ==, 1124730);
 
 	gdata_picasaweb_album_get_coordinates (album, &latitude, &longitude);
@@ -1069,7 +1069,7 @@ test_query_user (GDataService *service)
 	g_assert_cmpstr (gdata_picasaweb_user_get_nickname (user), ==, "libgdata.picasaweb");
 	g_assert_cmpint (gdata_picasaweb_user_get_quota_limit (user), ==, 1073741824); /* 1GiB: it'll be a beautiful day when this assert gets tripped */
 	g_assert_cmpint (gdata_picasaweb_user_get_quota_current (user), >, 0);
-	g_assert_cmpint (gdata_picasaweb_user_get_max_photos_per_album (user), ==, 500);
+	g_assert_cmpint (gdata_picasaweb_user_get_max_photos_per_album (user), >, 0); /* now it's 1000, testing this weakly to avoid having to regularly update it */
 	g_assert_cmpstr (gdata_picasaweb_user_get_thumbnail_uri (user), ==, "http://lh6.ggpht.com/_1kdcGyvOb8c/AAAA9mDag3s/AAAAAAAAAAA/Jq-NWYWKFao/s64-c/libgdata.picasaweb.jpg";);
 
 	g_object_unref (user);



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