Skip to content

Commit

Permalink
test create or build
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 16, 2024
1 parent 1714262 commit c3b66b3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class ClientTest {
val client = runBlocking {
Client().createOrBuild(
account = fakeWallet,
address = fakeWallet.address,
options = options
)
}
Expand All @@ -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
Expand Down

0 comments on commit c3b66b3

Please sign in to comment.