aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java b/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java
index 4114a8f..2ead9e6 100644
--- a/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java
+++ b/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetPresence.java
@@ -347,6 +347,8 @@ public class TestOperationSetPresence
{
logger.debug("Testing Subscription and Subscription Event Dispatch.");
+ dumplists();
+
SubscriptionEventCollector subEvtCollector
= new SubscriptionEventCollector();
operationSetPresence1.addSubsciptionListener(subEvtCollector);
@@ -452,8 +454,6 @@ public class TestOperationSetPresence
{
// happens if the user is already subscribed
}
-
- dumplists();
}
/**
@@ -542,12 +542,18 @@ public class TestOperationSetPresence
{
logger.debug("Clear the two lists before tests");
+ // wait a moment if any event hes left from the previous tests
+ Object o = new Object();
+ synchronized(o)
+ {
+ o.wait(2000);
+ }
+
// wait for a moment
// give time the impl to get the lists
logger.debug("start clearing");
fixture.clearProvidersLists();
- Object o = new Object();
synchronized(o)
{
o.wait(3000);