Skip to content

Commit

Permalink
Remove test_no_op_member_added_is_trash test
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jan 7, 2025
1 parent abccc54 commit 71ca2e7
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/receive_imf/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5040,32 +5040,6 @@ async fn test_unarchive_on_member_removal() -> Result<()> {
Ok(())
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_no_op_member_added_is_trash() -> Result<()> {
let mut tcm = TestContextManager::new();
let alice = &tcm.alice().await;
let bob = &tcm.bob().await;
let alice_chat_id = alice
.create_group_with_members(ProtectionStatus::Unprotected, "foos", &[bob])
.await;
send_text_msg(alice, alice_chat_id, "populate".to_string()).await?;
let msg = alice.pop_sent_msg().await;
bob.recv_msg(&msg).await;
let bob_chat_id = bob.get_last_msg().await.chat_id;
bob_chat_id.accept(bob).await?;

let fiona_id = Contact::create(alice, "", "[email protected]").await?;
add_contact_to_chat(alice, alice_chat_id, fiona_id).await?;
let msg = alice.pop_sent_msg().await;

let fiona_id = Contact::create(bob, "", "[email protected]").await?;
add_contact_to_chat(bob, bob_chat_id, fiona_id).await?;
bob.recv_msg_trash(&msg).await;
let contacts = get_chat_contacts(bob, bob_chat_id).await?;
assert_eq!(contacts.len(), 3);
Ok(())
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_forged_from() -> Result<()> {
let mut tcm = TestContextManager::new();
Expand Down

0 comments on commit 71ca2e7

Please sign in to comment.