Remove println! calls from test_group_with_removed_message_id()

They were accidentally added in 6bb5721f29

Given that they are full of typos, they were probably not meant to be commited.
This commit is contained in:
link2xt
2021-04-18 18:37:49 +03:00
parent 09bc8fc603
commit 004fb76864

View File

@@ -3855,7 +3855,6 @@ mod tests {
.unwrap(); .unwrap();
let alice_chat = Chat::load_from_db(&alice, alice_chat_id).await.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; add_contact_to_chat(&alice, alice_chat_id, contact_id).await;
assert_eq!( assert_eq!(
get_chat_contacts(&alice, alice_chat_id) get_chat_contacts(&alice, alice_chat_id)
@@ -3864,11 +3863,9 @@ mod tests {
.len(), .len(),
2 2
); );
println!("----- send_text_msg");
send_text_msg(&alice, alice_chat_id, "hi!".to_string()) send_text_msg(&alice, alice_chat_id, "hi!".to_string())
.await .await
.ok(); .ok();
println!("----- get_chat_msgs");
assert_eq!( assert_eq!(
get_chat_msgs(&alice, alice_chat_id, 0, None) get_chat_msgs(&alice, alice_chat_id, 0, None)
.await .await
@@ -3877,7 +3874,6 @@ mod tests {
1 1
); );
println!("----- pop_sent_msg");
// Alice has an SMTP-server replacing the `Message-ID:`-header (as done eg. by outlook.com). // Alice has an SMTP-server replacing the `Message-ID:`-header (as done eg. by outlook.com).
let msg = alice.pop_sent_msg().await.payload(); let msg = alice.pop_sent_msg().await.payload();
assert_eq!(msg.match_indices("Gr.").count(), 2); assert_eq!(msg.match_indices("Gr.").count(), 2);
@@ -3890,11 +3886,9 @@ mod tests {
.unwrap(); .unwrap();
let msg = bob.get_last_msg().await; let msg = bob.get_last_msg().await;
println!("load from dbb");
let bob_chat = Chat::load_from_db(&bob, msg.chat_id).await.unwrap(); let bob_chat = Chat::load_from_db(&bob, msg.chat_id).await.unwrap();
assert_eq!(bob_chat.grpid, alice_chat.grpid); assert_eq!(bob_chat.grpid, alice_chat.grpid);
println!("chat loaded");
// Bob answers - simulate a normal MUA by not setting `Chat-*`-headers; // Bob answers - simulate a normal MUA by not setting `Chat-*`-headers;
// moreover, Bob's SMTP-server also replaces the `Message-ID:`-header // moreover, Bob's SMTP-server also replaces the `Message-ID:`-header
send_text_msg(&bob, bob_chat.id, "ho!".to_string()) send_text_msg(&bob, bob_chat.id, "ho!".to_string())
@@ -3905,12 +3899,10 @@ mod tests {
let msg = msg.replace("Chat-", "XXXX-"); let msg = msg.replace("Chat-", "XXXX-");
assert_eq!(msg.match_indices("Chat-").count(), 0); 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 // Alice receives this message - she can still detect the group by the `References:`-header
dc_receive_imf(&alice, msg.as_bytes(), "INBOX", 2, false) dc_receive_imf(&alice, msg.as_bytes(), "INBOX", 2, false)
.await .await
.unwrap(); .unwrap();
println!("----- last receie if");
let msg = alice.get_last_msg().await; let msg = alice.get_last_msg().await;
assert_eq!(msg.chat_id, alice_chat_id); assert_eq!(msg.chat_id, alice_chat_id);
assert_eq!(msg.text, Some("ho!".to_string())); assert_eq!(msg.text, Some("ho!".to_string()));