Skip to content

Commit

Permalink
Fix flaky crash reporter test (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Feb 6, 2023
1 parent fffcb15 commit 1c0b30f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void tearDown() {
}

@Test
void integrationTest() {
void integrationTest() throws InterruptedException {
InstrumentedApplication instrumentedApplication = mock(InstrumentedApplication.class);
when(instrumentedApplication.getOpenTelemetrySdk())
.thenReturn((OpenTelemetrySdk) testing.getOpenTelemetry());
Expand All @@ -75,6 +75,7 @@ void integrationTest() {
});
crashingThread.setDaemon(true);
crashingThread.start();
crashingThread.join();

Attributes expectedAttributes =
Attributes.builder()
Expand Down

0 comments on commit 1c0b30f

Please sign in to comment.