Skip to content

Commit

Permalink
Make LogginHandlerTest more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Nov 20, 2024
1 parent b9f9711 commit 0786dad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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> arc = Mockito.mockStatic(Arc.class)) {
arc.when(Arc::container).thenReturn(container);

Expand Down

0 comments on commit 0786dad

Please sign in to comment.