mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 23:42: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:
parent
ea53ae6622
commit
b2c85d1ccc
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue