From 3e246ecdb69f65bfd791a8f150cab66de055ac05 Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Mon, 29 Sep 2025 20:13:12 +0100 Subject: [PATCH] Fix rooms command integration test. (#958) Fixes https://github.com/the-draupnir-project/Draupnir/issues/957. --- test/integration/commands/roomsTest.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/integration/commands/roomsTest.ts b/test/integration/commands/roomsTest.ts index eedf540..9a1e349 100644 --- a/test/integration/commands/roomsTest.ts +++ b/test/integration/commands/roomsTest.ts @@ -89,10 +89,12 @@ describe("Test: The rooms commands", function () { }); } ); + // wait for policy change notification to create + await new Promise((resolve) => setTimeout(resolve, 1000)); assert.equal( - protectedRoomsMessage["content"]["body"].includes("1"), + protectedRoomsMessage["content"]["body"].includes("2"), true, - "Only the management room should be protected." + "Only the management room should be protected and the policy change notification room." ); } as unknown as Mocha.AsyncFunc );