Skip to content

Commit

Permalink
Fix other test that no longer needs manual commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Nov 14, 2023
1 parent 4d73b1f commit e215701
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,6 @@ mod tests {
let client_2 = ClientBuilder::new_test_client(generate_local_wallet().into()).await;
client_2.register_identity().await.unwrap();
let group = client.create_group().expect("create group");
let conn = &mut client.store.conn().unwrap();

group
.add_members_by_installation_id(vec![client_2
Expand All @@ -889,19 +888,6 @@ mod tests {
.await
.unwrap();

let intents = client
.store
.find_group_intents(conn, group.group_id.clone(), None, None)
.unwrap();
let intent = intents.first().unwrap();
// Set the intent to committed manually
// TODO: Replace with working synchronization once we can add members end to end
client
.store
.set_group_intent_committed(conn, intent.id)
.unwrap();
group.post_commit(conn).await.unwrap();

// Check if the welcome was actually sent
let welcome_topic = get_welcome_topic(&client_2.identity.installation_keys.to_public_vec());
let welcome_messages = client
Expand Down

0 comments on commit e215701

Please sign in to comment.