1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 16:22:06 +01:00

Fixed #testJoinLeftEvents since the server may send an unavailable presence to the user that just left the room.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2489 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-04-23 00:26:24 +00:00 committed by gaston
parent ea53ae6622
commit b2c85d1ccc

View file

@ -1632,7 +1632,8 @@ public class MultiUserChatTest extends SmackTestCase {
if ((room + "/testbot2").equals(participant)) {
answer[2] = participant;
}
else {
// Skip unavailable presences of the same user
else if (!(room + "/testbot").equals(participant)) {
answer[3] = participant;
}
}
@ -1656,7 +1657,8 @@ public class MultiUserChatTest extends SmackTestCase {
if ((room + "/testbot").equals(participant)) {
answer[6] = participant;
}
else {
// Skip unavailable presences of the same user
else if (!(room + "/testbot2").equals(participant)){
answer[7] = participant;
}
}