Skip to content

Commit

Permalink
fix up the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 15, 2024
1 parent 2682b6b commit e8b2b05
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ class GroupTest {

assertEquals(alixGroup.messages().size, 1)
assertEquals(alixGroup2.messages().size, 1)
assertEquals(numGroups, 2u)
assertEquals(numGroups, 3u)

runBlocking {
boGroup2.removeMembers(listOf(alix.walletAddress))
Expand All @@ -933,17 +933,18 @@ class GroupTest {
boGroup2.send("hi")
boGroup2.send("hi")
numGroups = alixClient.conversations.syncAllConversations()
Thread.sleep(2000)
}

assertEquals(alixGroup.messages().size, 3)
assertEquals(alixGroup2.messages().size, 2)
// First syncAllGroups after remove includes the group you're removed from
assertEquals(numGroups, 2u)
assertEquals(numGroups, 3u)

runBlocking {
numGroups = alixClient.conversations.syncAllConversations()
}
// Next syncAllGroups will not include the inactive group
assertEquals(numGroups, 1u)
assertEquals(numGroups, 2u)
}
}

0 comments on commit e8b2b05

Please sign in to comment.