about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-02 00:41:50 +0100
committerJames Booth <boothj5@gmail.com>2015-06-02 00:41:50 +0100
commitf278e0a466c3b7815f0575d37057397666218b28 (patch)
tree8c7149bbb7e53322607d2acda71b0e6d035b9f94
parent07c9d2ddab3f38d646364fb0c4586adba986a9f9 (diff)
downloadprofani-tty-f278e0a466c3b7815f0575d37057397666218b28.tar.gz
Use stbbr_for_query for roster
-rw-r--r--functionaltests/test_connect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/functionaltests/test_connect.c b/functionaltests/test_connect.c
index 8e0cabde..7a42397f 100644
--- a/functionaltests/test_connect.c
+++ b/functionaltests/test_connect.c
@@ -33,8 +33,8 @@ connect_jid_requests_roster(void **state)
 void
 connect_jid_sends_presence_after_receiving_roster(void **state)
 {
-    stbbr_for_id("roster",
-        "<iq id=\"roster\" type=\"result\" to=\"stabber@localhost/profanity\">"
+    stbbr_for_query("jabber:iq:roster",
+        "<iq type=\"result\" to=\"stabber@localhost/profanity\">"
             "<query xmlns=\"jabber:iq:roster\" ver=\"362\">"
                 "<item jid=\"buddy1@localhost\" subscription=\"both\" name=\"Buddy1\"/>"
                 "<item jid=\"buddy2@localhost\" subscription=\"both\" name=\"Buddy2\"/>"
@@ -76,8 +76,8 @@ connect_bad_password(void **state)
 void
 connect_shows_presence_updates(void **state)
 {
-    stbbr_for_id("roster",
-        "<iq id=\"roster\" type=\"result\" to=\"stabber@localhost/profanity\">"
+    stbbr_for_query("jabber:iq:roster",
+        "<iq type=\"result\" to=\"stabber@localhost/profanity\">"
             "<query xmlns=\"jabber:iq:roster\" ver=\"362\">"
                 "<item jid=\"buddy1@localhost\" subscription=\"both\" name=\"Buddy1\"/>"
                 "<item jid=\"buddy2@localhost\" subscription=\"both\" name=\"Buddy2\"/>"