aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBenoit Pradelle <pradelle@java.net>2007-07-25 15:56:24 +0000
committerBenoit Pradelle <pradelle@java.net>2007-07-25 15:56:24 +0000
commit28633e9767f11b181200c19b8a63be5a341c7fed (patch)
tree35839fbfc9cd820ae281c268cacca1647836c430 /test
parentf083d85578fbc2bbf57ae9b62efaa417aa82ea8d (diff)
downloadjitsi-28633e9767f11b181200c19b8a63be5a341c7fed.zip
jitsi-28633e9767f11b181200c19b8a63be5a341c7fed.tar.gz
jitsi-28633e9767f11b181200c19b8a63be5a341c7fed.tar.bz2
(trying to) fix some problems with the SIMPLE test cases on cruise control
Diffstat (limited to 'test')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetPresence.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetPresence.java b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetPresence.java
index b22e9fa..b32e464 100644
--- a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetPresence.java
+++ b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetPresence.java
@@ -398,6 +398,15 @@ public class TestOperationSetPresence
subEvtCollector.collectedEvents.clear();
+ // wait to be sure that every responses for the subscribe have been
+ // received
+ Object lock = new Object();
+ synchronized(lock)
+ {
+ logger.info("Will wait all subscription events to be received");
+ lock.wait(3000);
+ }
+
// make the user agent tester change its states and make sure we are
// notified
logger.debug("Testing presence notifications.");
@@ -482,10 +491,9 @@ public class TestOperationSetPresence
// happens if the user is already subscribed
}
- Object lock = new Object();
synchronized(lock)
{
- logger.info("Will wait all subscriptioin events to be received by" +
+ logger.info("Will wait all subscription events to be received by" +
" lib");
lock.wait(3000);
logger.info("Stopped waiting");