[libgdata] picasaweb: Fix user tests to work when no photos have been uploaded



commit 9214fc318f99fe14b1945bf12e7a4ddf683956ec
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Jun 24 19:34:35 2011 +0100

    picasaweb: Fix user tests to work when no photos have been uploaded
    
    Since all the PicasaWeb tests are now idempotent, we can run them on an
    empty PicasaWeb account with no quota used.

 gdata/tests/picasaweb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index a0c01c1..4853cf6 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -1166,7 +1166,7 @@ test_query_user (gconstpointer service)
 	g_assert_cmpstr (gdata_picasaweb_user_get_user (user), ==, "libgdata.picasaweb");
 	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_quota_current (user), >=, 0);
 	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), !=, NULL); /* tested weakly to avoid having to update it regularly */
 



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