Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch the TimeoutException #9

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -1064,7 +1064,7 @@ public void deleteNodeAndNotifySubscribersTest() throws NoResponseException, XMP
final String needle = "<event xmlns='http://jabber.org/protocol/pubsub#event'>";
final String delete_confirm = "<delete node='princely_musings'>";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work. You're creating a node wit a name that starts with sinttest-delete-node-that-exists-, but you're deleting a node that is named princely_musings.

final String regex = "#^." + needle + "." + delete_confirm + ".$#";
try{
try {
pubSubManagerOne.createNode(nodename);
final Node subscriberNode = pubSubManagerTwo.getNode(nodename);
final EntityBareJid subscriber = conTwo.getUser().asEntityBareJid();