diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-05 10:25:18 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | dd3f99434cc3cb7226d33ffcd888c91d0ce150a9 (patch) | |
tree | c3bc3a29ef98436901df6ed9e197edad7db02d70 /server/tests/api/transcoding | |
parent | ab14f0e0dca878dbaccc8f6a895a68e4269c9873 (diff) | |
download | PeerTube-dd3f99434cc3cb7226d33ffcd888c91d0ce150a9.tar.gz PeerTube-dd3f99434cc3cb7226d33ffcd888c91d0ce150a9.tar.zst PeerTube-dd3f99434cc3cb7226d33ffcd888c91d0ce150a9.zip |
Fix studio tests
Diffstat (limited to 'server/tests/api/transcoding')
-rw-r--r-- | server/tests/api/transcoding/video-studio.ts | 46 |
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 | }) |