X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fhandle-down.ts;h=3dcd076f599df0be92bea341f95374e872129b62;hb=db1ccd05d349c400c658dec68d11c8b01c9ccd01;hp=b3255a72135e692f8bc8753ba87e084ea2a566bb;hpb=851675c5591dcab1070183f0ed1b1a788de07d2c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts index b3255a721..3dcd076f5 100644 --- a/server/tests/api/server/handle-down.ts +++ b/server/tests/api/server/handle-down.ts @@ -2,18 +2,18 @@ import 'mocha' import * as chai from 'chai' +import { completeVideoCheck } from '@server/tests/shared' +import { wait } from '@shared/core-utils' +import { HttpStatusCode, JobState, VideoCreateResult, VideoPrivacy } from '@shared/models' import { cleanupTests, CommentsCommand, - completeVideoCheck, createMultipleServers, killallServers, PeerTubeServer, setAccessTokensToServers, - wait, waitJobs -} from '@shared/extra-utils' -import { HttpStatusCode, JobState, VideoCreateResult, VideoPrivacy } from '@shared/models' +} from '@shared/server-commands' const expect = chai.expect @@ -50,7 +50,7 @@ describe('Test handle downs', function () { let commentCommands: CommentsCommand[] before(async function () { - this.timeout(30000) + this.timeout(120000) servers = await createMultipleServers(3) commentCommands = servers.map(s => s.comments) @@ -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()