From 5d497b4ca026519cbc367c3e2e5a1ec2930407cd Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 19 Sep 2024 16:43:44 +0100 Subject: [PATCH] plus one --- test/integration/mentionSpamProtectionTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/mentionSpamProtectionTest.ts b/test/integration/mentionSpamProtectionTest.ts index fdaa68d5..1aedfb10 100644 --- a/test/integration/mentionSpamProtectionTest.ts +++ b/test/integration/mentionSpamProtectionTest.ts @@ -70,7 +70,7 @@ describe("Test: Mention spam protection", function () { return await client.sendMessage(this.mjolnir.managementRoomId, { msgtype: 'm.text', body: "!mjolnir enable MentionSpam" }); }); // Also covers HTML mentions - const mentionUsers = Array.from({length: DEFAULT_MAX_MENTIONS}, (_, i) => `@user${i}:example.org`); + const mentionUsers = Array.from({length: DEFAULT_MAX_MENTIONS+1}, (_, i) => `@user${i}:example.org`); const messageWithTextMentions = await client.sendText(room, 'Hello world ' + mentionUsers.join(' ')); const messageWithMMentions = await client.sendMessage(room, { msgtype: 'm.text',