ARTEMIS-4936 make test more resilient

This commit is contained in:
Justin Bertram 2024-07-19 10:58:31 -05:00
parent 75034e32b6
commit 4053698014
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.apache.activemq.artemis.tests.integration.client;
import java.lang.invoke.MethodHandles;
import org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException;
import org.apache.activemq.artemis.api.core.ActiveMQTransactionOutcomeUnknownException;
import org.apache.activemq.artemis.api.core.ActiveMQUnBlockedException;
import org.apache.activemq.artemis.api.core.Interceptor;
@ -130,7 +131,7 @@ public class ConfirmationWindowTest extends ActiveMQTestBase {
session.commit();
fail("Commit should have timed out & failed.");
}
} catch (ActiveMQTransactionOutcomeUnknownException | ActiveMQUnBlockedException e) {
} catch (ActiveMQTransactionOutcomeUnknownException | ActiveMQUnBlockedException | ActiveMQNotConnectedException e) {
// expected
}
}