1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Include resource in ping test

This commit is contained in:
James Booth 2015-05-24 21:50:05 +01:00
parent 7fb00a1e15
commit af73cb82e6

View File

@ -178,13 +178,14 @@ responds_to_ping(void **state)
prof_process_xmpp(20);
stbbr_send(
"<iq id=\"ping1\" type=\"get\" to=\"stabber@localhost\" from=\"localhost\">"
"<iq id=\"ping1\" type=\"get\" to=\"stabber@localhost/profanity\" from=\"localhost\">"
"<ping xmlns=\"urn:xmpp:ping\"/>"
"</iq>");
"</iq>"
);
prof_process_xmpp(20);
assert_true(stbbr_verify(
"<iq id=\"ping1\" type=\"result\" from=\"stabber@localhost\" to=\"localhost\"/>"
"<iq id=\"ping1\" type=\"result\" from=\"stabber@localhost/profanity\" to=\"localhost\"/>"
));
}