Skip to content

Commit f365e14

Browse files
committed
test on local
1 parent 162ee70 commit f365e14

File tree

1 file changed

+17
-0
lines changed
  • library/src/androidTest/java/org/xmtp/android/library

1 file changed

+17
-0
lines changed

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

+17
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,23 @@ class ClientTest {
111111

112112
@Test
113113
fun testCreatesAV3Client() {
114+
val context = InstrumentationRegistry.getInstrumentation().targetContext
115+
val fakeWallet = PrivateKeyBuilder()
116+
val client =
117+
Client().create(
118+
account = fakeWallet,
119+
options = ClientOptions(
120+
ClientOptions.Api(XMTPEnvironment.LOCAL, false),
121+
enableAlphaMls = true,
122+
appContext = context
123+
)
124+
)
125+
val v3Client = client.libXMTPClient
126+
assertEquals(client.address.lowercase(), v3Client?.accountAddress()?.lowercase())
127+
}
128+
129+
@Test
130+
fun testCreatesAV3DevClient() {
114131
val context = InstrumentationRegistry.getInstrumentation().targetContext
115132
val fakeWallet = PrivateKeyBuilder()
116133
val client =

0 commit comments

Comments
 (0)