Skip to content

Commit

Permalink
Repro missing epochs
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Aug 16, 2024
1 parent 9cb3207 commit 2b54df5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openmls/src/group/tests/test_past_secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
framing::{MessageDecryptionError, MlsMessageIn, ProcessedMessageContent},
group::*,
};
use openmls_traits::OpenMlsProvider;

#[openmls_test::openmls_test]
fn test_past_secrets_in_group(
Expand Down Expand Up @@ -135,9 +136,11 @@ fn test_past_secrets_in_group(
),)
));
}

// The last messages should not fail
for application_message in application_messages.iter().skip(max_epochs / 2) {
let mut bob_group = MlsGroup::load(provider.storage(), bob_group.group_id())
.expect("reload group")
.unwrap();
let bob_processed_message = bob_group
.process_message(provider, application_message.clone())
.expect("An unexpected error occurred.");
Expand Down

0 comments on commit 2b54df5

Please sign in to comment.