Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
Signed-off-by: Gagan Juneja <[email protected]>
  • Loading branch information
Gagan Juneja committed Sep 8, 2023
1 parent 01e0dd7 commit b0f7bc5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class MockTracingTelemetry implements TracingTelemetry {

private final SpanProcessor spanProcessor = new StrictCheckSpanProcessor();
private final AtomicBoolean shutdown = new AtomicBoolean(false);
private static final AtomicBoolean shutdown = new AtomicBoolean(false);

/**
* Base constructor.
Expand All @@ -44,7 +44,9 @@ public TracingContextPropagator getContextPropagator() {

@Override
public void close() {
shutdown.set(true);
if (shutdown.get() == false) {
shutdown.set(true);
}
}

}

0 comments on commit b0f7bc5

Please sign in to comment.