Skip to content

Commit

Permalink
Repro max past epochs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Oct 3, 2024
1 parent e3c1ea9 commit 26cb097
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ mod tests {
bo_group.send("bo1".as_bytes().to_vec()).await.unwrap();
alix_group.send("alix1".as_bytes().to_vec()).await.unwrap();

// Move the group forward by 3 epochs (as Alix's max_past_epochs is
// Move the group forward by 2 epochs (as Alix's max_past_epochs is
// configured to 3) without Bo syncing
alix_group
.add_members(vec![
Expand All @@ -2530,15 +2530,15 @@ mod tests {
])
.await
.unwrap();
alix_group
.add_members(vec![
eri.account_address.clone(),
frankie.account_address.clone(),
])
.await
.unwrap();
// alix_group
// .add_members(vec![
// eri.account_address.clone(),
// frankie.account_address.clone(),
// ])
// .await
// .unwrap();

// Bo sends messages to Alix while 3 epochs behind
// Bo sends messages to Alix while 2 epochs behind
bo_group.send("bo3".as_bytes().to_vec()).await.unwrap();
alix_group.send("alix3".as_bytes().to_vec()).await.unwrap();
bo_group.send("bo4".as_bytes().to_vec()).await.unwrap();
Expand All @@ -2553,8 +2553,8 @@ mod tests {
let bo_messages = bo_group
.find_messages(FfiListMessagesOptions::default())
.unwrap();
assert_eq!(bo_messages.len(), 9);
assert_eq!(alix_messages.len(), 10);
assert_eq!(bo_messages.len(), 8);
assert_eq!(alix_messages.len(), 9);

assert_eq!(
bo_messages[bo_messages.len() - 1].id,
Expand Down

0 comments on commit 26cb097

Please sign in to comment.