From ba78226fe926ad641bd3664b5c0171e2e9b9d830 Mon Sep 17 00:00:00 2001 From: Vincent Lucas Date: Fri, 23 Mar 2012 08:30:36 +0000 Subject: Adds a break (wait for 1000 ms) to correct first test of TestOperationSetMultiUserChat2.testInitialParticipantsRoles(): "Unexpected role for user1 excepted: but was:". 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. --- .../slick/protocol/jabber/TestOperationSetMultiUserChat2.java | 1 + 1 file changed, 1 insertion(+) (limited to 'test/net/java/sip/communicator/slick') 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", -- cgit v1.1