Skip to content

Commit 4fc2525

Browse files
committed
fix unit tests
1 parent 7e7b76c commit 4fc2525

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

core/src/test/kotlin/com/segment/analytics/kotlin/core/AnalyticsTests.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,10 @@ class AsyncAnalyticsTests {
994994

995995
private lateinit var actual: CapturingSlot<BaseEvent>
996996

997-
init {
997+
@BeforeEach
998+
fun setup() {
999+
clearPersistentStorage()
1000+
9981001
httpSemaphore = Semaphore(0)
9991002
assertSemaphore = Semaphore(0)
10001003

@@ -1024,13 +1027,6 @@ class AsyncAnalyticsTests {
10241027
assertSemaphore.release()
10251028
input
10261029
}
1027-
1028-
}
1029-
1030-
1031-
@BeforeEach
1032-
fun setup() {
1033-
clearPersistentStorage()
10341030
analytics = Analytics(Configuration(writeKey = "123", application = "Test"))
10351031
}
10361032

0 commit comments

Comments
 (0)