]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/utils/server/jobs.ts
increase waitJobs pendingJobs timeout to 2000
[github/Chocobozzz/PeerTube.git] / shared / utils / server / jobs.ts
index 3eec1d7d784fb407e732bfbf3a44b37d12a10850..f4623f8967dddb0b0673b656246c9c3e8f88e112 100644 (file)
@@ -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)
     }