import * as request from 'supertest'
import { Job, JobState } from '../../models'
import * as request from 'supertest'
import { Job, JobState } from '../../models'
function getJobsList (url: string, accessToken: string, state: JobState) {
const path = '/api/v1/jobs/' + state
function getJobsList (url: string, accessToken: string, state: JobState) {
const path = '/api/v1/jobs/' + state
// Retry, in case of new jobs were created
if (pendingRequests === false) {
// Retry, in case of new jobs were created
if (pendingRequests === false) {