You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Test members function from non group creator#[tokio::test(flavor = "multi_thread", worker_threads = 1)]asyncfntest_members_func_from_non_creator(){let amal = ClientBuilder::new_test_client(&generate_local_wallet()).await;let bola = ClientBuilder::new_test_client(&generate_local_wallet()).await;let amal_group = amal.create_group(None).unwrap();
amal_group
.add_members_by_inbox_id(&amal,vec![bola.inbox_id()]).await.unwrap();// Get bola's version of the same grouplet bola_groups = bola.sync_welcomes().await.unwrap();let bola_group = bola_groups.first().unwrap();// Call sync for both
amal_group.sync(&amal).await.unwrap();
bola_group.sync(&bola).await.unwrap();// Verify bola can see the group namelet bola_group_name = bola_group.group_name().unwrap();assert_eq!(bola_group_name,"New Group");// Check if both clients can see the members correctlylet amal_members = amal_group.members().unwrap();let bola_members = bola_group.members().unwrap();assert_eq!(amal_members.len(),2);assert_eq!(bola_members.len(),2);// failing here, see len == 0}
The text was updated successfully, but these errors were encountered:
Once the first one is fixed this issue should resolve itself in most real cases. And once the second one is fixed this situation will result in an error.
Describe the bug
See PR for test case reproduction: https://github.com/xmtp/libxmtp/pull/768/files#diff-c29f56a38916c7410eff8091df1a2e43487ffe20646d96827e846e475f4608d3R926
Expected behavior
No response
Steps to reproduce the bug
The text was updated successfully, but these errors were encountered: