Fix rooms command integration test. (#958)

Fixes https://github.com/the-draupnir-project/Draupnir/issues/957.
This commit is contained in:
Gnuxie
2025-09-29 20:13:12 +01:00
committed by GitHub
parent 8326d7fe0f
commit 3e246ecdb6

View File

@@ -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
);