cleanupTests,
createMultipleServers,
doubleFollow,
+ expectNoFailedTranscodingJob,
expectStartWith,
makeRawRequest,
ObjectStorageCommand,
}
}
-async function expectNoFailedTranscodingJob (server: PeerTubeServer) {
- const { data } = await server.jobs.listFailed({ jobType: 'video-transcoding' })
- expect(data).to.have.lengthOf(0)
-}
-
function runTests (objectStorage: boolean) {
let servers: PeerTubeServer[] = []
let videoUUID: string
const { shortUUID } = await servers[0].videos.quickUpload({ name: 'video' })
videoUUID = shortUUID
+ await waitJobs(servers)
+
const video = await servers[0].videos.get({ id: videoUUID })
publishedAt = video.publishedAt as string
await servers[0].config.enableTranscoding()
-
- await waitJobs(servers)
})
it('Should generate HLS', async function () {