X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Ftranscoding%2Fvideo-studio.ts;h=35efc3d4976745968707b8e8210cda49789dc498;hb=dd3f99434cc3cb7226d33ffcd888c91d0ce150a9;hp=d22cfff4a7d8b0a2c81425756a6917fca4c9a1ba;hpb=ab14f0e0dca878dbaccc8f6a895a68e4269c9873;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/transcoding/video-studio.ts b/server/tests/api/transcoding/video-studio.ts index d22cfff4a..35efc3d49 100644 --- a/server/tests/api/transcoding/video-studio.ts +++ b/server/tests/api/transcoding/video-studio.ts @@ -300,6 +300,29 @@ describe('Test video studio', function () { }) }) + describe('Server restart', function () { + + it('Should still be able to run video edition after a server restart', async function () { + this.timeout(240_000) + + await renewVideo() + await servers[0].videoStudio.createEditionTasks({ videoId: videoUUID, tasks: VideoStudioCommand.getComplexTask() }) + + await servers[0].kill() + await servers[0].run() + + await waitJobs(servers) + + for (const server of servers) { + await checkVideoDuration(server, videoUUID, 9) + } + }) + + it('Should have an empty persistent tmp directory', async function () { + await checkPersistentTmpIsEmpty(servers[0]) + }) + }) + describe('Object storage studio edition', function () { if (areMockObjectStorageTestsDisabled()) return @@ -342,29 +365,6 @@ describe('Test video studio', function () { }) }) - describe('Server restart', function () { - - it('Should still be able to run video edition after a server restart', async function () { - this.timeout(240_000) - - await renewVideo() - await servers[0].videoStudio.createEditionTasks({ videoId: videoUUID, tasks: VideoStudioCommand.getComplexTask() }) - - await servers[0].kill() - await servers[0].run() - - await waitJobs(servers) - - for (const server of servers) { - await checkVideoDuration(server, videoUUID, 9) - } - }) - - it('Should have an empty persistent tmp directory', async function () { - await checkPersistentTmpIsEmpty(servers[0]) - }) - }) - after(async function () { await cleanupTests(servers) })