mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 08:26:30 +03:00
Modify test so that it fails if contacts are added from a mailing list
This commit is contained in:
@@ -1792,10 +1792,12 @@ mod tests {
|
||||
assert_eq!(chat.name, "deltachat/deltachat-core-rust");
|
||||
assert_eq!(chat::get_chat_contacts(&t.ctx, chat_id).len(), 0);
|
||||
|
||||
|
||||
dc_receive_imf(&t.ctx, MAILINGLIST2, "INBOX", 1, false).unwrap();
|
||||
|
||||
let chats = Chatlist::try_load(&t.ctx, 0, None, None).unwrap();
|
||||
assert_eq!(chats.len(), 1);
|
||||
assert!(Contact::get_all(&t.ctx, 0, None as Option<String>).unwrap().is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user