diff --git a/logging/runtime/src/test/java/io/quarkiverse/googlecloudservices/logging/runtime/LoggingHandlerTest.java b/logging/runtime/src/test/java/io/quarkiverse/googlecloudservices/logging/runtime/LoggingHandlerTest.java index be2ec69a..a849a308 100644 --- a/logging/runtime/src/test/java/io/quarkiverse/googlecloudservices/logging/runtime/LoggingHandlerTest.java +++ b/logging/runtime/src/test/java/io/quarkiverse/googlecloudservices/logging/runtime/LoggingHandlerTest.java @@ -58,6 +58,9 @@ void shouldLogToStdoutWithTraceInfoAndLabels() { ArcContainer container = createArcContainer(traceId, spanId); + // There can be JVM logs before our log so we clean the output stream captor + outputStreamCaptor.reset(); + try (MockedStatic arc = Mockito.mockStatic(Arc.class)) { arc.when(Arc::container).thenReturn(container);