Clear loggers both before AND after tests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 3 Jun 2016 20:42:40 +0000 (16:42 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 3 Jun 2016 20:42:40 +0000 (16:42 -0400)
Let's try this, it solved the problem in another case...

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLoggerHierarchyListIT.java

index e53e4a7e664ed63510831e7271e7d5d1eb22e821..531309aa613f35b385ba1358ad0fe7870b0845f1 100644 (file)
@@ -128,6 +128,9 @@ public class JulLoggerHierarchyListIT extends LoggerHierachyListITBase {
             }
             childLogger = null;
         }
+
+        LogManager.getLogManager().reset();
+        System.gc();
     }
 
     // ------------------------------------------------------------------------
This page took 0.023097 seconds and 4 git commands to generate.