Skip to content

Commit 5d42212

Browse files
committed
Small test tweaks
1 parent c034cfe commit 5d42212

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/tests/pre_messages/receiving.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,6 @@ async fn test_bot_pre_message_notifications() -> Result<()> {
803803
let mut tcm = TestContextManager::new();
804804
let alice = tcm.alice().await;
805805
let bob = tcm.bob().await;
806-
807-
// Configure Bob as a bot
808806
bob.set_config_bool(Config::Bot, true).await?;
809807

810808
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<()> {
813811
&alice,
814812
alice_group_id,
815813
Viewtype::File,
816-
&vec![0u8; 1_000_000],
814+
&vec![0u8; (PRE_MSG_ATTACHMENT_SIZE_THRESHOLD + 1) as usize],
817815
)
818816
.await?;
819817

0 commit comments

Comments
 (0)