Skip to content

Commit dd7ce48

Browse files
committed
Fix test_cc_to_contact
1 parent 81c68f8 commit dd7ce48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/receive_imf/tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ async fn test_escaped_recipients() {
595595
assert_eq!(msg.param.get_int(Param::WantsMdn).unwrap(), 1);
596596
}
597597

598+
/// Tests that `Cc` header updates display name
599+
/// if existing contact has low enough origin.
598600
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
599601
async fn test_cc_to_contact() {
600602
let t = TestContext::new_alice().await;
@@ -612,6 +614,8 @@ async fn test_cc_to_contact() {
612614
.unwrap()
613615
.0;
614616

617+
// We use non-chat message here
618+
// because chat messages are not expected to have `Cc` header.
615619
receive_imf(
616620
&t,
617621
b"Received: (Postfix, from userid 1000); Mon, 4 Dec 2006 14:51:39 +0100 (CET)\n\
@@ -620,8 +624,6 @@ async fn test_cc_to_contact() {
620624
Cc: Carl <carl@host.tld>\n\
621625
Subject: foo\n\
622626
Message-ID: <asdklfjjaweofi@example.com>\n\
623-
Chat-Version: 1.0\n\
624-
Chat-Disposition-Notification-To: <foobar@example.com>\n\
625627
Date: Sun, 22 Mar 2020 22:37:57 +0000\n\
626628
\n\
627629
hello\n",

0 commit comments

Comments
 (0)