aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip/communicator/slick
diff options
context:
space:
mode:
authorVincent Lucas <chenzo@jitsi.org>2012-03-23 08:30:36 +0000
committerVincent Lucas <chenzo@jitsi.org>2012-03-23 08:30:36 +0000
commitba78226fe926ad641bd3664b5c0171e2e9b9d830 (patch)
tree4ee6979d53c9cd09abae5a1e3822d123fcd07be8 /test/net/java/sip/communicator/slick
parentb809c0f68bd7c3dfa8d408fb270fcbca1147524d (diff)
downloadjitsi-ba78226fe926ad641bd3664b5c0171e2e9b9d830.zip
jitsi-ba78226fe926ad641bd3664b5c0171e2e9b9d830.tar.gz
jitsi-ba78226fe926ad641bd3664b5c0171e2e9b9d830.tar.bz2
Adds a break (wait for 1000 ms) to correct first test of
TestOperationSetMultiUserChat2.testInitialParticipantsRoles(): "Unexpected role for user1 excepted:<MODERATOR> but was:<GUEST>". This test fails when the smack library takes too much time to call the RoomListenerMultiplexor. When receiving a presence packet, the PacketReader calls many listener: - If the RoomListenerMultiplexor is on top of the Connection.recvListeners map, then the test was successful. - Otherwise the test was failing.
Diffstat (limited to 'test/net/java/sip/communicator/slick')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java b/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java
index 405a8c4..3a5bb01 100644
--- a/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java
+++ b/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetMultiUserChat2.java
@@ -1275,6 +1275,7 @@ public class TestOperationSetMultiUserChat2
MUCEventCollector roomUser1Collector =
new MUCEventCollector(roomUser1, MUCEventCollector.EVENT_PRESENCE);
+ roomUser1Collector.waitForEvent(10000); // wait for user1
// User1 who just created the room is supposed to be the owner:
assertEquals("Unexpected role for user1",