File tree 1 file changed +9
-8
lines changed
library/src/androidTest/java/org/xmtp/android/library
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
package org.xmtp.android.library
2
2
3
+ import android.content.Context
4
+ import androidx.test.core.app.ApplicationProvider
3
5
import androidx.test.ext.junit.runners.AndroidJUnit4
4
6
import androidx.test.platform.app.InstrumentationRegistry
5
7
import org.junit.Assert.assertEquals
@@ -25,18 +27,17 @@ class GroupMembershipChangeTest {
25
27
lateinit var caro: PrivateKey
26
28
lateinit var caroClient: Client
27
29
lateinit var fixtures: Fixtures
30
+ val context = ApplicationProvider .getApplicationContext<Context >()
28
31
29
32
@Before
30
33
fun setUp () {
31
- val context = InstrumentationRegistry .getInstrumentation().targetContext
32
- fixtures =
33
- fixtures(
34
- clientOptions = ClientOptions (
35
- ClientOptions .Api (XMTPEnvironment .LOCAL , false ),
36
- enableAlphaMls = true ,
37
- appContext = context
38
- )
34
+ fixtures = fixtures(
35
+ clientOptions = ClientOptions (
36
+ ClientOptions .Api (XMTPEnvironment .LOCAL , false ),
37
+ enableAlphaMls = true ,
38
+ appContext = context,
39
39
)
40
+ )
40
41
alixWallet = fixtures.aliceAccount
41
42
alix = fixtures.alice
42
43
boWallet = fixtures.bobAccount
You can’t perform that action at this time.
0 commit comments