Skip to content

Commit

Permalink
Reduce number of rooms involved in banListTest.ts
Browse files Browse the repository at this point in the history
apparently this takes over 5 minutes on the little github acitons VM.
Starting to wonder if this is really a sustainable setup.
  • Loading branch information
Gnuxie committed Aug 16, 2022
1 parent f3d7af1 commit 7fd63a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/banListTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7fd63a5

Please sign in to comment.