diff options
author | Damian Minkov <damencho@jitsi.org> | 2007-03-28 08:55:21 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2007-03-28 08:55:21 +0000 |
commit | 81a622a481d8c9640c8220c96da5eb8bb3dc8839 (patch) | |
tree | 17b732af067efe1165dfc4e14d1a66f6a959f827 /test/net | |
parent | 87deb0e77c3069c58d572d028a56c664c9f99921 (diff) | |
download | jitsi-81a622a481d8c9640c8220c96da5eb8bb3dc8839.zip jitsi-81a622a481d8c9640c8220c96da5eb8bb3dc8839.tar.gz jitsi-81a622a481d8c9640c8220c96da5eb8bb3dc8839.tar.bz2 |
Rerequesting status if we haven't received one.
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPresence.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPresence.java b/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPresence.java index 58e9b2b..1917159 100644 --- a/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPresence.java +++ b/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetPresence.java @@ -260,6 +260,15 @@ public class TestOperationSetPresence //test event notification. statusEventCollector.waitForPresEvent(10000); statusEventCollector.waitForStatMsgEvent(10000); + + // sometimes we don't get response from the server for the + // changed status. we will query it once again. + // and wait for the response + if(statusEventCollector.collectedPresEvents.size() == 0) + { + operationSetPresence.queryContactStatus(fixture.icqAccountID.getUserID()); + statusEventCollector.waitForPresEvent(10000); + } operationSetPresence.removeProviderPresenceStatusListener( statusEventCollector); |