From 004fb768647a7d4b0a254d19e39434a4b0939cec Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 18 Apr 2021 18:37:49 +0300 Subject: [PATCH] Remove println! calls from test_group_with_removed_message_id() They were accidentally added in 6bb5721f29d6cdf1a62dc251125fef23031e3136 Given that they are full of typos, they were probably not meant to be commited. --- src/chat.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 8878dc6ea..6cadfc74a 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -3855,7 +3855,6 @@ mod tests { .unwrap(); let alice_chat = Chat::load_from_db(&alice, alice_chat_id).await.unwrap(); - println!("----- add_contact_to_chat"); add_contact_to_chat(&alice, alice_chat_id, contact_id).await; assert_eq!( get_chat_contacts(&alice, alice_chat_id) @@ -3864,11 +3863,9 @@ mod tests { .len(), 2 ); - println!("----- send_text_msg"); send_text_msg(&alice, alice_chat_id, "hi!".to_string()) .await .ok(); - println!("----- get_chat_msgs"); assert_eq!( get_chat_msgs(&alice, alice_chat_id, 0, None) .await @@ -3877,7 +3874,6 @@ mod tests { 1 ); - println!("----- pop_sent_msg"); // Alice has an SMTP-server replacing the `Message-ID:`-header (as done eg. by outlook.com). let msg = alice.pop_sent_msg().await.payload(); assert_eq!(msg.match_indices("Gr.").count(), 2); @@ -3890,11 +3886,9 @@ mod tests { .unwrap(); let msg = bob.get_last_msg().await; - println!("load from dbb"); let bob_chat = Chat::load_from_db(&bob, msg.chat_id).await.unwrap(); assert_eq!(bob_chat.grpid, alice_chat.grpid); - println!("chat loaded"); // Bob answers - simulate a normal MUA by not setting `Chat-*`-headers; // moreover, Bob's SMTP-server also replaces the `Message-ID:`-header send_text_msg(&bob, bob_chat.id, "ho!".to_string()) @@ -3905,12 +3899,10 @@ mod tests { let msg = msg.replace("Chat-", "XXXX-"); assert_eq!(msg.match_indices("Chat-").count(), 0); - println!("last receive start"); // Alice receives this message - she can still detect the group by the `References:`-header dc_receive_imf(&alice, msg.as_bytes(), "INBOX", 2, false) .await .unwrap(); - println!("----- last receie if"); let msg = alice.get_last_msg().await; assert_eq!(msg.chat_id, alice_chat_id); assert_eq!(msg.text, Some("ho!".to_string()));