We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abd98df commit 3d60231Copy full SHA for 3d60231
1 file changed
sdk/trace/src/test/java/io/opentelemetry/sdk/trace/SdkTracerProviderMetricsTest.java
@@ -12,6 +12,7 @@
12
import static io.opentelemetry.sdk.trace.SdkTracerMetrics.OTEL_SPAN_PARENT_ORIGIN;
13
import static io.opentelemetry.sdk.trace.SdkTracerMetrics.OTEL_SPAN_SAMPLING_RESULT;
14
import static org.mockito.ArgumentMatchers.any;
15
+import static org.mockito.Mockito.lenient;
16
import static org.mockito.Mockito.when;
17
18
import io.opentelemetry.api.common.Attributes;
@@ -910,7 +911,7 @@ void batch() throws Exception {
910
911
Attributes.of(
912
OTEL_SPAN_SAMPLING_RESULT, "RECORD_AND_SAMPLE")))));
913
- when(mockExporter.shutdown()).thenReturn(CompletableResultCode.ofSuccess());
914
+ lenient().when(mockExporter.shutdown()).thenReturn(CompletableResultCode.ofSuccess());
915
processor.shutdown();
916
}
917
0 commit comments