aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip/communicator/slick/protocol/generic
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/java/sip/communicator/slick/protocol/generic')
-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;
}
}