From 87c0f718dc91514eb3674eda61a5ef6facef55ac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Oct 2021 08:30:17 +0200 Subject: [PATCH] Fix benchmark test --- scripts/benchmark.ts | 2 +- server/tests/api/server/handle-down.ts | 2 +- server/tests/api/users/user-subscriptions.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts index c29b9abcd..007e3c33b 100644 --- a/scripts/benchmark.ts +++ b/scripts/benchmark.ts @@ -135,7 +135,7 @@ async function run () { title: 'API - config', path: '/api/v1/config', expecter: (body, status) => { - return status === 200 && body.startsWith('{"instance":') + return status === 200 && body.startsWith('{"allowEdits":') } } ] diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts index b3255a721..fa1da8fe0 100644 --- a/server/tests/api/server/handle-down.ts +++ b/server/tests/api/server/handle-down.ts @@ -172,7 +172,7 @@ describe('Test handle downs', function () { }) it('Should re-follow server 1', async function () { - this.timeout(35000) + this.timeout(70000) await servers[1].run() await servers[2].run() diff --git a/server/tests/api/users/user-subscriptions.ts b/server/tests/api/users/user-subscriptions.ts index 77b99886d..441f70d07 100644 --- a/server/tests/api/users/user-subscriptions.ts +++ b/server/tests/api/users/user-subscriptions.ts @@ -22,7 +22,7 @@ describe('Test users subscriptions', function () { let command: SubscriptionsCommand before(async function () { - this.timeout(120000) + this.timeout(240000) servers = await createMultipleServers(3)