From 405dd9d9012d231c66f25c93db89552884feabeb Mon Sep 17 00:00:00 2001 From: Shay Date: Wed, 22 Jan 2025 16:48:24 -0800 Subject: [PATCH] Unflake tests (#570) --- test/integration/commands/suspendCommandTest.ts | 2 +- test/integration/dontBanSelfTest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/commands/suspendCommandTest.ts b/test/integration/commands/suspendCommandTest.ts index bc882304..4ac61091 100644 --- a/test/integration/commands/suspendCommandTest.ts +++ b/test/integration/commands/suspendCommandTest.ts @@ -65,7 +65,7 @@ describe("Test: suspend/unsuspend command", function () { await badUser.sendMessage(room, { msgtype: "m.text", body: `testing` }); assert.fail("Bad user successfully sent message."); } catch (error) { - assert.match(error.message, /ORG.MATRIX.MSC3823.USER_ACCOUNT_SUSPENDED/i); + assert.match(error.message, /M_USER_SUSPENDED/i); } let reply2 = new Promise(async (resolve, reject) => { diff --git a/test/integration/dontBanSelfTest.ts b/test/integration/dontBanSelfTest.ts index d7d5d750..5c4442c1 100644 --- a/test/integration/dontBanSelfTest.ts +++ b/test/integration/dontBanSelfTest.ts @@ -45,7 +45,7 @@ describe("Test: Bot doesn't ban moderation room members or ignored entities.", f return new Promise((resolve) => setTimeout(resolve, ms)); } - await delay(4000); + await delay(5000); const currentMods = this.mjolnir.moderators.listAll(); let expectedCurrentMods = [await client.getUserId(), await this.mjolnir.client.getUserId()]; expectedCurrentMods.forEach((mod) => {