From 8417af95c9a817ff8d9debdbc5fac170a850559d Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Wed, 22 Jan 2025 15:55:30 -0800 Subject: [PATCH 1/2] update suspension error code --- test/integration/commands/suspendCommandTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => { From f95ccc130792578a473d4638c2dab693da1c0323 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Wed, 22 Jan 2025 16:14:28 -0800 Subject: [PATCH 2/2] unflake moderation room member test --- test/integration/dontBanSelfTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {