Skip to content

Commit

Permalink
make test more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Jul 3, 2024
1 parent d3d937e commit 20a7ecf
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2597,7 +2597,21 @@ mod tests {

four.await.unwrap();

let message = get_latest_message(&bola_group, &bola).await;
assert_eq!(message.decrypted_message_bytes, b"test four");
bola_group.sync(&bola).await.unwrap();
let messages = bola_group
.find_messages(None, None, None, None, None)
.unwrap();
assert_eq!(
messages
.into_iter()
.map(|m| m.decrypted_message_bytes)
.collect::<Vec<Vec<u8>>>(),
vec![
b"test one".to_vec(),
b"test two".to_vec(),
b"test three".to_vec(),
b"test four".to_vec(),
]
);
}
}

0 comments on commit 20a7ecf

Please sign in to comment.