mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix typescript tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { expect } from 'chai'
|
||||
import { wait } from '@peertube/peertube-core-utils'
|
||||
import { arrayify, wait } from '@peertube/peertube-core-utils'
|
||||
import { JobState, JobType, RunnerJobState } from '@peertube/peertube-models'
|
||||
import { PeerTubeServer } from './server.js'
|
||||
|
||||
@@ -16,10 +16,7 @@ async function waitJobs (
|
||||
? parseInt(process.env.NODE_PENDING_JOB_WAIT, 10)
|
||||
: 250
|
||||
|
||||
let servers: PeerTubeServer[]
|
||||
|
||||
if (Array.isArray(serversArg) === false) servers = [ serversArg ]
|
||||
else servers = serversArg
|
||||
const servers = arrayify(serversArg)
|
||||
|
||||
const states: JobState[] = [ 'waiting', 'active' ]
|
||||
if (!skipDelayed) states.push('delayed')
|
||||
|
||||
Reference in New Issue
Block a user