X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Futils%2Fserver%2Fjobs.ts;h=f4623f8967dddb0b0673b656246c9c3e8f88e112;hb=1de1d05f4c61fe059fa5e24e79c92582f0e7e4b3;hp=3eec1d7d784fb407e732bfbf3a44b37d12a10850;hpb=d4681c0074ba51c62a3aeb9fb3f2cd071dd21e32;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/utils/server/jobs.ts b/shared/utils/server/jobs.ts index 3eec1d7d7..f4623f896 100644 --- a/shared/utils/server/jobs.ts +++ b/shared/utils/server/jobs.ts @@ -1,6 +1,7 @@ import * as request from 'supertest' import { Job, JobState } from '../../models' -import { ServerInfo, wait } from '../index' +import { wait } from '../miscs/miscs' +import { ServerInfo } from './servers' function getJobsList (url: string, accessToken: string, state: JobState) { const path = '/api/v1/jobs/' + state @@ -57,7 +58,7 @@ async function waitJobs (serversArg: ServerInfo[] | ServerInfo) { // Retry, in case of new jobs were created if (pendingRequests === false) { - await wait(1000) + await wait(2000) await Promise.all(tasks) }