File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
sdk/trace/src/test/java/io/opentelemetry/sdk/trace Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212import static io .opentelemetry .sdk .trace .SdkTracerMetrics .OTEL_SPAN_PARENT_ORIGIN ;
1313import static io .opentelemetry .sdk .trace .SdkTracerMetrics .OTEL_SPAN_SAMPLING_RESULT ;
1414import static org .mockito .ArgumentMatchers .any ;
15+ import static org .mockito .Mockito .lenient ;
1516import static org .mockito .Mockito .when ;
1617
1718import io .opentelemetry .api .common .Attributes ;
@@ -910,7 +911,7 @@ void batch() throws Exception {
910911 Attributes .of (
911912 OTEL_SPAN_SAMPLING_RESULT , "RECORD_AND_SAMPLE" )))));
912913
913- when (mockExporter .shutdown ()).thenReturn (CompletableResultCode .ofSuccess ());
914+ lenient (). when (mockExporter .shutdown ()).thenReturn (CompletableResultCode .ofSuccess ());
914915 processor .shutdown ();
915916 }
916917
You can’t perform that action at this time.
0 commit comments