From e8b2b051887e2fc685356423fce4ecf2319eeb44 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 14 Nov 2024 17:24:27 -0800 Subject: [PATCH] fix up the test --- .../androidTest/java/org/xmtp/android/library/GroupTest.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/src/androidTest/java/org/xmtp/android/library/GroupTest.kt b/library/src/androidTest/java/org/xmtp/android/library/GroupTest.kt index fe9f91fc9..1c89792cd 100644 --- a/library/src/androidTest/java/org/xmtp/android/library/GroupTest.kt +++ b/library/src/androidTest/java/org/xmtp/android/library/GroupTest.kt @@ -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)) @@ -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) } }