mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-03-29 10:29:57 +00:00
Fix rooms command integration test. (#958)
Fixes https://github.com/the-draupnir-project/Draupnir/issues/957.
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user