diff --git a/splunk-otel-android/src/test/java/io/opentelemetry/rum/internal/instrumentation/crash/CrashReporterTest.java b/splunk-otel-android/src/test/java/io/opentelemetry/rum/internal/instrumentation/crash/CrashReporterTest.java index 5dee100b4..130048f7d 100644 --- a/splunk-otel-android/src/test/java/io/opentelemetry/rum/internal/instrumentation/crash/CrashReporterTest.java +++ b/splunk-otel-android/src/test/java/io/opentelemetry/rum/internal/instrumentation/crash/CrashReporterTest.java @@ -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()); @@ -75,6 +75,7 @@ void integrationTest() { }); crashingThread.setDaemon(true); crashingThread.start(); + crashingThread.join(); Attributes expectedAttributes = Attributes.builder()