aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2009-08-26 09:32:11 +0000
committerDamian Minkov <damencho@jitsi.org>2009-08-26 09:32:11 +0000
commitd45dd664c9adac0c43f513cdc3c4d645c662a863 (patch)
treeb9c7c5b4ca6fc5f7a12aa591201c3a7b82f6bb57 /test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java
parent91260b28b492933cba24cc0e00c7826c700ee143 (diff)
downloadjitsi-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/TestOperationSetFileTransfer.java')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java9
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;
}
}