mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
test: Fix one panic in test_broadcasts_name_and_avatar, but there is another one where I couldn't find the problem
This commit is contained in:
@@ -2808,7 +2808,7 @@ async fn test_broadcasts_name_and_avatar() -> Result<()> {
|
||||
assert_eq!(alice_chat.typ, Chattype::OutBroadcast);
|
||||
|
||||
let alice_chat = Chat::load_from_db(alice, alice_chat_id).await?;
|
||||
assert_eq!(alice_chat.is_promoted(), false);
|
||||
assert_eq!(alice_chat.is_promoted(), true); // Broadcast channels are never unpromoted
|
||||
let sent = alice.send_text(alice_chat_id, "Hi nobody").await;
|
||||
let alice_chat = Chat::load_from_db(alice, alice_chat_id).await?;
|
||||
assert_eq!(alice_chat.is_promoted(), true);
|
||||
|
||||
Reference in New Issue
Block a user