summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-10-06 11:26:28 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2016-04-18 13:43:08 +0200
commit3825a2b150972112627eebf5d1caaa095b90ee53 (patch)
tree6a43d762aba90a785ea5112fe3f97652eff13da7
parent7846a016d71fe6f29af5fb53d540ecb15cd72f23 (diff)
downloadlibrest-3825a2b150972112627eebf5d1caaa095b90ee53.tar.gz
tests: Fix lastfm test
Since August 17th 2015, user.getInfo no longer returns an 'id' node. It's not clear whether that's a bug server-side, or a permanent change. Since it has been 2 months already, make the 'id' node optional in the lastfm test rather than having a hard failure when it's missing.
-rw-r--r--tests/lastfm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lastfm.c b/tests/lastfm.c
index fba2fe2..b6af16e 100644
--- a/tests/lastfm.c
+++ b/tests/lastfm.c
@@ -71,8 +71,8 @@ main (int argc, char **argv)
g_assert (u_node);
node = rest_xml_node_find (u_node, "id");
- g_assert (node);
- g_assert_cmpstr (node->content, ==, "17038");
+ if (node != NULL)
+ g_assert_cmpstr (node->content, ==, "17038");
node = rest_xml_node_find (u_node, "name");
g_assert (node);