From 8a91021a0e80a1ce91047dd7867c4932697bb732 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 18 Apr 2021 21:35:34 +0200 Subject: [PATCH] [sinttest] Improve MultiUserChatIntegrationTest.tryDestroy(MultiUserChat) --- .../smackx/muc/MultiUserChatIntegrationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java index 28a9f26b3..e7b93c78f 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatIntegrationTest.java @@ -703,8 +703,9 @@ public class MultiUserChatIntegrationTest extends AbstractSmackIntegrationTest { } try { muc.destroy("test fixture teardown", null); - } catch (Exception ex) { - LOGGER.log(Level.FINEST, "Failed to tear down a randomly generated MUC (" + muc.getRoom().toString() + ") used as a test fixture. Continuing anyway.", ex); + } catch (NoResponseException | XMPPErrorException | NotConnectedException | InterruptedException ex) { + LOGGER.log(Level.FINEST, "Failed to tear down a randomly generated MUC (" + muc.getRoom() + + ") used as a test fixture. Continuing anyway.", ex); } }