1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 03:52:06 +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:
Guus der Kinderen 2024-09-05 10:59:23 +02:00
parent 38c6dd21b4
commit 4f840d1066

View file

@ -79,7 +79,7 @@ public class IntegrationTestRosterUtil {
try {
presenceRequestingRoster.sendSubscriptionRequest(presenceRequestReceiverAddress.asBareJid());
syncPoint.waitForResult(timeout);
syncPoint.waitForResult(timeout, "Timeout while waiting for subscription request of '" + presenceRequestingAddress + "' to '" + presenceRequestReceiverAddress + "' to be answered.");
} finally {
presenceRequestReceiverRoster.removeSubscribeListener(subscribeListener);
presenceRequestingRoster.removePresenceEventListener(presenceEventListener);