Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Dec 3, 2024
1 parent 06b0fff commit 8d8da97
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,8 @@ mod tests {
}
bo.conversations().sync().await.unwrap();
let num_groups_synced_1: u32 = bo.conversations().sync_all_conversations().await.unwrap();
assert!(num_groups_synced_1 == 30);
// 31 because there is a sync group as well
assert_eq!(num_groups_synced_1, 31);

// Remove bo from all groups and sync
for group in alix
Expand All @@ -2616,11 +2617,13 @@ mod tests {

// First sync after removal needs to process all groups and set them to inactive
let num_groups_synced_2: u32 = bo.conversations().sync_all_conversations().await.unwrap();
assert!(num_groups_synced_2 == 30);
// 31 because there is a sync group as well
assert_eq!(num_groups_synced_2, 31);

// Second sync after removal will not process inactive groups
let num_groups_synced_3: u32 = bo.conversations().sync_all_conversations().await.unwrap();
assert!(num_groups_synced_3 == 0);
// 1 because there is a sync group as well
assert_eq!(num_groups_synced_3, 1);
}

#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
Expand Down

0 comments on commit 8d8da97

Please sign in to comment.