From 6ca6a439bd03ce41a5e7d361cc0f8e964ea244ad Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 14 Apr 2024 22:22:51 +0000 Subject: [PATCH] test(node): increase 'static tests' timeout to 5 minutes It keeps timing out with the default timeout of 2 s on macOS runners. Also fix comment in the integration test which said that timeout is 1 minute but sets it to 3 minutes. Set this timeout to 5 minutes as well. --- node/test/test.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/test/test.mjs b/node/test/test.mjs index 8ead548ff..2a0860040 100644 --- a/node/test/test.mjs +++ b/node/test/test.mjs @@ -26,6 +26,8 @@ function createTempUser(chatmailDomain) { } describe('static tests', function () { + this.timeout(60 * 5 * 1000) // increase timeout to 5 min + it('reverse lookup of events', function () { const eventKeys = Object.keys(EventId2EventName).map((k) => Number(k)) const eventValues = Object.values(EventId2EventName) @@ -701,7 +703,7 @@ describe('Offline Tests with unconfigured account', function () { }) describe('Integration tests', function () { - this.timeout(60 * 3000) // increase timeout to 1min + this.timeout(60 * 5 * 1000) // increase timeout to 5 min let [dc, context, accountId, directory, account] = [ null,