aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/transcoding/video-studio.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/transcoding/video-studio.ts')
-rw-r--r--server/tests/api/transcoding/video-studio.ts46
1 files changed, 23 insertions, 23 deletions
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 () {
300 }) 300 })
301 }) 301 })
302 302
303 describe('Server restart', function () {
304
305 it('Should still be able to run video edition after a server restart', async function () {
306 this.timeout(240_000)
307
308 await renewVideo()
309 await servers[0].videoStudio.createEditionTasks({ videoId: videoUUID, tasks: VideoStudioCommand.getComplexTask() })
310
311 await servers[0].kill()
312 await servers[0].run()
313
314 await waitJobs(servers)
315
316 for (const server of servers) {
317 await checkVideoDuration(server, videoUUID, 9)
318 }
319 })
320
321 it('Should have an empty persistent tmp directory', async function () {
322 await checkPersistentTmpIsEmpty(servers[0])
323 })
324 })
325
303 describe('Object storage studio edition', function () { 326 describe('Object storage studio edition', function () {
304 if (areMockObjectStorageTestsDisabled()) return 327 if (areMockObjectStorageTestsDisabled()) return
305 328
@@ -342,29 +365,6 @@ describe('Test video studio', function () {
342 }) 365 })
343 }) 366 })
344 367
345 describe('Server restart', function () {
346
347 it('Should still be able to run video edition after a server restart', async function () {
348 this.timeout(240_000)
349
350 await renewVideo()
351 await servers[0].videoStudio.createEditionTasks({ videoId: videoUUID, tasks: VideoStudioCommand.getComplexTask() })
352
353 await servers[0].kill()
354 await servers[0].run()
355
356 await waitJobs(servers)
357
358 for (const server of servers) {
359 await checkVideoDuration(server, videoUUID, 9)
360 }
361 })
362
363 it('Should have an empty persistent tmp directory', async function () {
364 await checkPersistentTmpIsEmpty(servers[0])
365 })
366 })
367
368 after(async function () { 368 after(async function () {
369 await cleanupTests(servers) 369 await cleanupTests(servers)
370 }) 370 })