Small test tweaks

This commit is contained in:
Hocuri
2026-04-08 15:12:15 +02:00
parent c034cfe898
commit 5d42212f88

View File

@@ -803,8 +803,6 @@ async fn test_bot_pre_message_notifications() -> Result<()> {
let mut tcm = TestContextManager::new(); let mut tcm = TestContextManager::new();
let alice = tcm.alice().await; let alice = tcm.alice().await;
let bob = tcm.bob().await; let bob = tcm.bob().await;
// Configure Bob as a bot
bob.set_config_bool(Config::Bot, true).await?; bob.set_config_bool(Config::Bot, true).await?;
let alice_group_id = alice.create_group_with_members("test group", &[&bob]).await; let alice_group_id = alice.create_group_with_members("test group", &[&bob]).await;
@@ -813,7 +811,7 @@ async fn test_bot_pre_message_notifications() -> Result<()> {
&alice, &alice,
alice_group_id, alice_group_id,
Viewtype::File, Viewtype::File,
&vec![0u8; 1_000_000], &vec![0u8; (PRE_MSG_ATTACHMENT_SIZE_THRESHOLD + 1) as usize],
) )
.await?; .await?;