1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Ensure we don't run transcoding after import file

This commit is contained in:
Chocobozzz 2021-11-23 15:22:07 +01:00
parent 0c8af78521
commit 842a15732b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 19 additions and 6 deletions

View file

@ -7,6 +7,7 @@ import {
cleanupTests,
createMultipleServers,
doubleFollow,
expectNoFailedTranscodingJob,
expectStartWith,
makeRawRequest,
ObjectStorageCommand,
@ -30,11 +31,6 @@ async function checkFilesInObjectStorage (video: VideoDetails) {
}
}
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