From 59fd824cf3434a8417b73230f1840fed327e3495 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Dec 2020 10:36:05 +0100 Subject: Fix tests timeout --- server/tests/api/check-params/live.ts | 4 ++-- server/tests/api/check-params/video-captions.ts | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'server/tests/api/check-params') diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts index 7e76caf6e..a5493572b 100644 --- a/server/tests/api/check-params/live.ts +++ b/server/tests/api/check-params/live.ts @@ -402,7 +402,7 @@ describe('Test video lives API validator', function () { }) it('Should fail to update a live if it has already started', async function () { - this.timeout(20000) + this.timeout(40000) const resLive = await getLive(server.url, server.accessToken, videoId) const live: LiveVideo = resLive.body @@ -416,7 +416,7 @@ describe('Test video lives API validator', function () { }) it('Should fail to stream twice in the save live', async function () { - this.timeout(30000) + this.timeout(40000) const resLive = await getLive(server.url, server.accessToken, videoId) const live: LiveVideo = resLive.body diff --git a/server/tests/api/check-params/video-captions.ts b/server/tests/api/check-params/video-captions.ts index e42e8db81..2f049c03d 100644 --- a/server/tests/api/check-params/video-captions.ts +++ b/server/tests/api/check-params/video-captions.ts @@ -58,7 +58,7 @@ describe('Test video captions API validator', function () { await makeUploadRequest({ method: 'PUT', url: server.url, - path: path + '4da6fde3-88f7-4d16-b119-108df563d0b06/captions', + path: path + '4da6fde3-88f7-4d16-b119-108df563d0b06/captions/fr', token: server.accessToken, fields, attaches @@ -69,10 +69,11 @@ describe('Test video captions API validator', function () { await makeUploadRequest({ method: 'PUT', url: server.url, - path: path + '4da6fde3-88f7-4d16-b119-108df5630b06/captions', + path: path + '4da6fde3-88f7-4d16-b119-108df5630b06/captions/fr', token: server.accessToken, fields, - attaches + attaches, + statusCodeExpected: 404 }) }) -- cgit v1.2.3