mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
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:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user