Skip to content

Commit

Permalink
make the test more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Sep 13, 2024
1 parent e44190e commit bbe809d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3743,7 +3743,15 @@ mod tests {
.unwrap();
assert_eq!(bo_consent, FfiConsentState::Allowed);

let member = &alix_group.list_members().unwrap()[0];
assert_eq!(member.consent_state, FfiConsentState::Allowed);
if let Some(member) = alix_group
.list_members()
.unwrap()
.iter()
.find(|&m| m.inbox_id == bo.inbox_id())
{
assert_eq!(member.consent_state, FfiConsentState::Allowed);
} else {
panic!("Error: No member found with the given inbox_id.");
}
}
}

0 comments on commit bbe809d

Please sign in to comment.