From c3b66b363d0a786a1cb1ea89bbf3bf969536f371 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Wed, 16 Oct 2024 09:53:40 -0700 Subject: [PATCH] test create or build --- .../java/org/xmtp/android/library/ClientTest.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt b/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt index a1c7655f6..f8a857d84 100644 --- a/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt +++ b/library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt @@ -161,6 +161,7 @@ class ClientTest { val client = runBlocking { Client().createOrBuild( account = fakeWallet, + address = fakeWallet.address, options = options ) } @@ -169,6 +170,18 @@ class ClientTest { } assert(client.installationId.isNotEmpty()) assertEquals(inboxId, client.inboxId) + + val clientBuild = runBlocking { + Client().createOrBuild( + address = fakeWallet.address, + options = options + ) + } + runBlocking { + clientBuild.canMessageV3(listOf(clientBuild.address))[clientBuild.address]?.let { assert(it) } + } + assert(clientBuild.installationId.isNotEmpty()) + assertEquals(inboxId, clientBuild.inboxId) } @Test