There was an error while loading. Please reload this page.
1 parent c034cfe commit 5d42212Copy full SHA for 5d42212
1 file changed
src/tests/pre_messages/receiving.rs
@@ -803,8 +803,6 @@ async fn test_bot_pre_message_notifications() -> Result<()> {
803
let mut tcm = TestContextManager::new();
804
let alice = tcm.alice().await;
805
let bob = tcm.bob().await;
806
-
807
- // Configure Bob as a bot
808
bob.set_config_bool(Config::Bot, true).await?;
809
810
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<()> {
813
811
&alice,
814
812
alice_group_id,
815
Viewtype::File,
816
- &vec![0u8; 1_000_000],
+ &vec![0u8; (PRE_MSG_ATTACHMENT_SIZE_THRESHOLD + 1) as usize],
817
)
818
.await?;
819
0 commit comments