Add log4j2 agent tests
[lttng-ust-java-tests.git] / lttng-ust-java-tests-common / src / main / java / org / lttng / ust / agent / integration / events / EnabledEventsITBase.java
index 99ce2a3ccf3fc7023b183b8dcf0b2987e77b0737..7a7ce36183712f394749f95dcf3638106b779e96 100644 (file)
@@ -55,6 +55,8 @@ public abstract class EnabledEventsITBase {
 
     protected abstract Domain getDomain();
 
+    protected abstract boolean closeHandlers();
+
     protected abstract void sendEventsToLoggers();
 
     /**
@@ -77,9 +79,11 @@ public abstract class EnabledEventsITBase {
     public void testTeardown() {
         session.close();
 
-        handlerA.close();
-        handlerB.close();
-        handlerC.close();
+        if (closeHandlers()) {
+            handlerA.close();
+            handlerB.close();
+            handlerC.close();
+        }
 
         handlerA = null;
         handlerB = null;
This page took 0.023117 seconds and 4 git commands to generate.