mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 17:32:22 +00:00
Reduce number of rooms involved in banListTest.ts
apparently this takes over 5 minutes on the little github acitons VM. Starting to wonder if this is really a sustainable setup.
This commit is contained in:
1 parent
b9284f0167
commit
899a8bd784
1 file changed
+2
-2
@@ -238,7 +238,7 @@ describe('Test: ACL updates will batch when rules are added in succession.', fun
|
||||
|
||||
// Setup some protected rooms so we can check their ACL state later.
|
||||
const protectedRooms: string[] = [];
|
||||
for (let i = 0; i < 10; i++) {
|
||||
for (let i = 0; i < 5; i++) {
|
||||
const room = await moderator.createRoom({ invite: [mjolnirId] });
|
||||
await mjolnir.client.joinRoom(room);
|
||||
await moderator.setUserPowerLevel(mjolnirId, room, 100);
|
||||
@@ -306,7 +306,7 @@ describe('Test: unbaning entities via the PolicyList.', function() {
|
||||
const mjolnirId = await mjolnir.client.getUserId();
|
||||
|
||||
// We'll make 1 protected room to test ACLs in.
|
||||
const protectedRoom = await moderator.createRoom({ invite: [mjolnirId], name: "Look for me" });
|
||||
const protectedRoom = await moderator.createRoom({ invite: [mjolnirId] });
|
||||
await mjolnir.client.joinRoom(protectedRoom);
|
||||
await moderator.setUserPowerLevel(mjolnirId, protectedRoom, 100);
|
||||
await mjolnir.addProtectedRoom(protectedRoom);
|
||||
|
||||
Reference in new issue
Block a user