From b2c85d1ccc7b229fba916e894813d52b9c0a89ce Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Sat, 23 Apr 2005 00:26:24 +0000 Subject: [PATCH] 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 --- test/org/jivesoftware/smackx/muc/MultiUserChatTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java b/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java index f557d6c19..549ea34a7 100644 --- a/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java +++ b/test/org/jivesoftware/smackx/muc/MultiUserChatTest.java @@ -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; } }