From 652b30564c41b6ad1a42568a5792cb58d00cd10d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Nov 2017 14:39:14 +0100 Subject: [PATCH] Increase test timers --- server/tests/api/config.ts | 2 ++ server/tests/api/multiple-servers.ts | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/tests/api/config.ts b/server/tests/api/config.ts index 72a9e5679..61ae57977 100644 --- a/server/tests/api/config.ts +++ b/server/tests/api/config.ts @@ -29,6 +29,8 @@ describe('Test config', function () { }) it('Should have a correct config on a server with registration enabled and a users limit', async function () { + this.timeout(5000) + await Promise.all([ registerUser(server.url, 'user1', 'super password'), registerUser(server.url, 'user2', 'super password'), diff --git a/server/tests/api/multiple-servers.ts b/server/tests/api/multiple-servers.ts index 601e5f39a..7d06e55d1 100644 --- a/server/tests/api/multiple-servers.ts +++ b/server/tests/api/multiple-servers.ts @@ -69,8 +69,7 @@ describe('Test multiple servers', function () { describe('Should upload the video and propagate on each server', function () { it('Should upload the video on server 1 and propagate on each server', async function () { - // Server 1 has video transcoding activated - this.timeout(15000) + this.timeout(25000) const videoAttributes = { name: 'my super name for server 1', @@ -85,7 +84,7 @@ describe('Test multiple servers', function () { } await uploadVideo(servers[0].url, servers[0].accessToken, videoAttributes) - await wait(5000) + await wait(10000) // All servers should have this video for (const server of servers) {