Skip to content

Commit c8f01aa

Browse files
committed
Update GroupMembershipChangeTest.kt
1 parent 4da951f commit c8f01aa

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

library/src/androidTest/java/org/xmtp/android/library/GroupMembershipChangeTest.kt

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.xmtp.android.library
22

3+
import android.content.Context
4+
import androidx.test.core.app.ApplicationProvider
35
import androidx.test.ext.junit.runners.AndroidJUnit4
46
import androidx.test.platform.app.InstrumentationRegistry
57
import org.junit.Assert.assertEquals
@@ -25,18 +27,17 @@ class GroupMembershipChangeTest {
2527
lateinit var caro: PrivateKey
2628
lateinit var caroClient: Client
2729
lateinit var fixtures: Fixtures
30+
val context = ApplicationProvider.getApplicationContext<Context>()
2831

2932
@Before
3033
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,
3939
)
40+
)
4041
alixWallet = fixtures.aliceAccount
4142
alix = fixtures.alice
4243
boWallet = fixtures.bobAccount

0 commit comments

Comments
 (0)