Skip to content

Commit

Permalink
time in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Sep 30, 2024
1 parent c269984 commit 950a5e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/commands/makedminCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("Test: The make admin command", function () {
await moderator.sendMessage(this.mjolnir.managementRoomId, { msgtype: 'm.text.', body: `!mjolnir rooms add ${targetRoom}` });
LogService.debug("makeadminTest", `Adding targetRoom: ${targetRoom}`);
// allow bot time to join room
await new Promise(resolve => setTimeout(resolve, 1000));
await new Promise(resolve => setTimeout(resolve, 5000));
try {
await moderator.start();
await userA.start();
Expand Down
1 change: 1 addition & 0 deletions test/integration/protectionSettingsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ describe("Test: Protection settings", function() {
settings = { test: new StringProtectionSetting() };
});

await new Promise(resolve => setTimeout(resolve, 5000));
let replyPromise: Promise<any> = new Promise((resolve, reject) => {
let i = 0;
client.on('room.message', noticeListener(this.mjolnir.managementRoomId, (event) => {
Expand Down

0 comments on commit 950a5e4

Please sign in to comment.