Skip to content

Commit

Permalink
fix up some test
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jul 1, 2024
1 parent 58b66c6 commit 8a5a4b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,7 @@ mod tests {
assert_eq!(members.len(), 2);
assert_eq!(group.group_name().unwrap(), "Group Name");
assert_eq!(group.group_image_url_square().unwrap(), "url");
assert_eq!(group.group_description().unwrap(), "group description");
}

#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
Expand Down
6 changes: 6 additions & 0 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,7 @@ mod tests {
GroupMetadataOptions {
name: Some("Group Name".to_string()),
image_url_square: Some("url".to_string()),
description: Some("group description".to_string()),
},
)
.unwrap();
Expand All @@ -1797,9 +1798,14 @@ mod tests {
.attributes
.get(&MetadataField::GroupImageUrlSquare.to_string())
.unwrap();
let amal_group_description: &String = binding
.attributes
.get(&MetadataField::Description.to_string())
.unwrap();

assert_eq!(amal_group_name, "Group Name");
assert_eq!(amal_group_image_url, "url");
assert_eq!(amal_group_description, "group description");
}

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

0 comments on commit 8a5a4b2

Please sign in to comment.