Skip to content

Commit 5155260

Browse files
committed
Fix the problem about unit tests
1 parent 08643bd commit 5155260

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mmkv-kotlin/src/appleTest/kotlin/com/ctrip/flight/mmkv/MMKVKMMTestIos.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
package com.ctrip.flight.mmkv
1818

19+
import kotlinx.cinterop.toKString
1920
import platform.Foundation.*
21+
import platform.posix.getenv
2022
import kotlin.test.*
2123

2224
/**
@@ -30,7 +32,7 @@ class MMKVKotlinTestIos {
3032

3133
@BeforeTest
3234
fun setUp() {
33-
initialize()
35+
initialize("/Users/${getenv("USER")!!.toKString()}/Downloads")
3436
mmkvTest = MMKVKotlinTest().apply {
3537
setUp()
3638
}

0 commit comments

Comments
 (0)