Skip to content

Commit

Permalink
Fix flaky test (#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Nov 1, 2021
1 parent f171884 commit 1f22239
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ void exportMoreSpansThanTheMaximumLimit() {
@Test
void exporterThrowsException() {
SpanExporter mockSpanExporter = mock(SpanExporter.class);
when(mockSpanExporter.shutdown()).thenReturn(CompletableResultCode.ofSuccess());
WaitingSpanExporter waitingSpanExporter =
new WaitingSpanExporter(1, CompletableResultCode.ofSuccess());
doThrow(new IllegalArgumentException("No export for you."))
Expand Down

0 comments on commit 1f22239

Please sign in to comment.