Skip to content

Commit 349ccad

Browse files
committed
fix
1 parent b599f6e commit 349ccad

File tree

1 file changed

+6
-2
lines changed
  • analytics-kotlin-live/src/androidTest/java/com/segment/analytics/liveplugins/kotlin

1 file changed

+6
-2
lines changed

analytics-kotlin-live/src/androidTest/java/com/segment/analytics/liveplugins/kotlin/LivePluginsTest.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ class LivePluginsTest {
7373

7474
@After
7575
fun tearDown() {
76-
if (exceptionThrown == null && ::livePlugins.isInitialized) {
77-
livePlugins.release()
76+
if (::livePlugins.isInitialized) {
77+
try {
78+
livePlugins.release()
79+
} catch (_: Exception) {
80+
// Ignore exceptions during tearDown release - the test might have already released it
81+
}
7882
}
7983
LivePlugins.loaded = false
8084
}

0 commit comments

Comments
 (0)