Skip to content

Commit

Permalink
[sinttest] Add error message to subscribe request failure
Browse files Browse the repository at this point in the history
Have a descriptive error message when a subscription request times out.
  • Loading branch information
guusdk committed Sep 5, 2024
1 parent 38c6dd2 commit 4f840d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void presenceSubscribed(BareJid address, Presence subscribedPresence) {
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);
Expand Down

0 comments on commit 4f840d1

Please sign in to comment.