mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
[sinttest] Add error message to subscribe request failure
Have a descriptive error message when a subscription request times out.
This commit is contained in:
parent
38c6dd21b4
commit
4f840d1066
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ public class IntegrationTestRosterUtil {
|
||||||
try {
|
try {
|
||||||
presenceRequestingRoster.sendSubscriptionRequest(presenceRequestReceiverAddress.asBareJid());
|
presenceRequestingRoster.sendSubscriptionRequest(presenceRequestReceiverAddress.asBareJid());
|
||||||
|
|
||||||
syncPoint.waitForResult(timeout);
|
syncPoint.waitForResult(timeout, "Timeout while waiting for subscription request of '" + presenceRequestingAddress + "' to '" + presenceRequestReceiverAddress + "' to be answered.");
|
||||||
} finally {
|
} finally {
|
||||||
presenceRequestReceiverRoster.removeSubscribeListener(subscribeListener);
|
presenceRequestReceiverRoster.removeSubscribeListener(subscribeListener);
|
||||||
presenceRequestingRoster.removePresenceEventListener(presenceEventListener);
|
presenceRequestingRoster.removePresenceEventListener(presenceEventListener);
|
||||||
|
|
Loading…
Reference in a new issue