mirror of https://github.com/Chocobozzz/PeerTube
Fix studio tests
parent
ab14f0e0dc
commit
dd3f99434c
|
@ -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 () {
|
describe('Object storage studio edition', function () {
|
||||||
if (areMockObjectStorageTestsDisabled()) return
|
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 () {
|
after(async function () {
|
||||||
await cleanupTests(servers)
|
await cleanupTests(servers)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue