Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Gagan Juneja <gjjuneja@amazon.com>
  • Loading branch information
Gagan Juneja committed Sep 1, 2023
1 parent aa4988b commit 2b4096c
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

import org.opensearch.test.OpenSearchTestCase;

import java.util.concurrent.atomic.AtomicBoolean;

import io.opentelemetry.api.trace.Span;
import io.opentelemetry.api.trace.SpanContext;
import io.opentelemetry.api.trace.TraceFlags;
Expand All @@ -28,10 +26,8 @@ public class OTelSpanTests extends OpenSearchTestCase {

public void testEndSpanTest() {
Span mockSpan = getMockSpan();
final AtomicBoolean onSpanEndTestFlag = new AtomicBoolean(false);
OTelSpan oTelSpan = new OTelSpan("spanName", mockSpan, null);
oTelSpan.endSpan();
assertTrue(onSpanEndTestFlag.get());
verify(mockSpan).end();
}

Expand Down

0 comments on commit 2b4096c

Please sign in to comment.