Skip to content

Commit

Permalink
fix up the android test
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 1, 2024
1 parent 8447c73 commit 99194d6
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2339,19 +2339,11 @@ test('can sync all groups', async () => {
}

// First syncAllGroups after removal will still sync each group to set group inactive
// For some reason on Android (RN only), first syncAllGroups already returns 0
const numGroupsSynced2 = await bo.conversations.syncAllGroups()
if (Platform.OS === 'ios') {
assert(
numGroupsSynced2 === 50,
`should have synced 50 groups but synced ${numGroupsSynced2}`
)
} else {
assert(
numGroupsSynced2 === 0,
`should have synced 0 groups but synced ${numGroupsSynced2}`
)
}
assert(
numGroupsSynced2 === 50,
`should have synced 50 groups but synced ${numGroupsSynced2}`
)

// Next syncAllGroups will not sync inactive groups
const numGroupsSynced3 = await bo.conversations.syncAllGroups()
Expand Down

0 comments on commit 99194d6

Please sign in to comment.