From 08106453b5a9269ac384f59b26578feee2908282 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Fri, 8 Dec 2017 11:31:27 -0600 Subject: [PATCH] NO-JIRA add expected MQTT threadgroup to test rule --- .../org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java index 85af09d838..2cf59d2356 100644 --- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java +++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java @@ -230,7 +230,7 @@ public class ThreadLeakCheckRule extends ExternalResource { } else if (threadName.contains("Abandoned connection cleanup thread")) { // MySQL Engine checks for abandoned connections return true; - } else if (threadName.contains("hawtdispatch")) { + } else if (threadName.contains("hawtdispatch") || (group != null && group.getName().contains("hawtdispatch"))) { // Static workers used by MQTT client. return true; } else {