We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b599f6e commit 349ccadCopy full SHA for 349ccad
analytics-kotlin-live/src/androidTest/java/com/segment/analytics/liveplugins/kotlin/LivePluginsTest.kt
@@ -73,8 +73,12 @@ class LivePluginsTest {
73
74
@After
75
fun tearDown() {
76
- if (exceptionThrown == null && ::livePlugins.isInitialized) {
77
- livePlugins.release()
+ if (::livePlugins.isInitialized) {
+ try {
78
+ livePlugins.release()
79
+ } catch (_: Exception) {
80
+ // Ignore exceptions during tearDown release - the test might have already released it
81
+ }
82
}
83
LivePlugins.loaded = false
84
0 commit comments