test: Make the test check for the exact set of recipients

This commit is contained in:
Hocuri
2026-08-03 17:55:13 +02:00
committed by holger krekel
parent 5eab324751
commit e45667b547

View File

@@ -902,9 +902,9 @@ async fn test_bcc_self() -> Result<()> {
for chat_id in [group, single_chat] {
let sent = alice.send_text(chat_id, "Heyho!").await;
if bcc_self {
assert!(sent.recipients.ends_with("alice@example.org"));
assert_eq!(sent.recipients, "bob@example.net alice@example.org");
} else {
assert_eq!(sent.recipients.contains("alice@example.org"), false);
assert_eq!(sent.recipients, "bob@example.net");
}
}
}