diff options
author | Damian Minkov <damencho@jitsi.org> | 2009-08-26 09:32:11 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2009-08-26 09:32:11 +0000 |
commit | d45dd664c9adac0c43f513cdc3c4d645c662a863 (patch) | |
tree | b9c7c5b4ca6fc5f7a12aa591201c3a7b82f6bb57 /test/net/java/sip/communicator/slick/protocol/generic | |
parent | 91260b28b492933cba24cc0e00c7826c700ee143 (diff) | |
download | jitsi-d45dd664c9adac0c43f513cdc3c4d645c662a863.zip jitsi-d45dd664c9adac0c43f513cdc3c4d645c662a863.tar.gz jitsi-d45dd664c9adac0c43f513cdc3c4d645c662a863.tar.bz2 |
Trying to fix build. Wait more for cancel events while transfering and put some logging to track the problem.
Diffstat (limited to 'test/net/java/sip/communicator/slick/protocol/generic')
-rw-r--r-- | test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java b/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java index ad3f9dd..5b797d0 100644 --- a/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java +++ b/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java @@ -694,7 +694,7 @@ public abstract class TestOperationSetFileTransfer ,fileTransferCreatedEvent.getFileTransfer().getLocalFile() ,receiveFile); - receiverStatusListener.waitForEvent(4000, 3); + receiverStatusListener.waitForEvent(8000, 3); assertTrue("Cancel event must be received", receiverStatusListener.contains(FileTransferStatusChangeEvent.CANCELED)); } @@ -979,13 +979,20 @@ public abstract class TestOperationSetFileTransfer { Iterator<FileTransferStatusChangeEvent> iter = collectedEvents.iterator(); + String statuses = ""; while (iter.hasNext()) { FileTransferStatusChangeEvent e = iter.next(); if(e.getNewStatus() == status) return true; + + statuses += e.getNewStatus() + " "; } + + logger.warn("Status not found : " + status + + " between statuses : " + statuses); + return false; } } |