From 92c9ca61cb6675ab211027dd578d045ba307c135 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Mon, 21 Oct 2024 12:29:27 -0700 Subject: [PATCH] don't join user to ban to management room --- test/integration/standardConsequenceTest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/standardConsequenceTest.ts b/test/integration/standardConsequenceTest.ts index eea8d636..b83b3be8 100644 --- a/test/integration/standardConsequenceTest.ts +++ b/test/integration/standardConsequenceTest.ts @@ -65,7 +65,7 @@ describe("Test: standard consequences", function () { this.timeout(20000); let protectedRoomId = await this.mjolnir.client.createRoom({ invite: [await badUser.getUserId()] }); - await badUser.joinRoom(this.mjolnir.managementRoomId); + await goodUser.joinRoom(this.mjolnir.managementRoomId); await badUser.joinRoom(protectedRoomId); await this.mjolnir.addProtectedRoom(protectedRoomId); @@ -96,7 +96,7 @@ describe("Test: standard consequences", function () { ban = event; } }); - badUser.on("room.event", (roomId, event) => { + goodUser.on("room.event", (roomId, event) => { if ( roomId === this.mjolnir.managementRoomId && event?.type === "m.room.message" &&