]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/cli/create-import-video-file-job.ts
Ensure we don't run transcoding after import file
[github/Chocobozzz/PeerTube.git] / server / tests / cli / create-import-video-file-job.ts
index 1e278bacccb00136287abfdc9086da5574867c3a..17ed67b0593f476a53dbb6194dfcc9ce15e8945e 100644 (file)
@@ -7,6 +7,7 @@ import {
   cleanupTests,
   createMultipleServers,
   doubleFollow,
+  expectNoFailedTranscodingJob,
   expectStartWith,
   makeRawRequest,
   ObjectStorageCommand,
@@ -69,6 +70,10 @@ function runTests (objectStorage: boolean) {
     }
 
     await waitJobs(servers)
+
+    for (const server of servers) {
+      await server.config.enableTranscoding()
+    }
   })
 
   it('Should run a import job on video 1 with a lower resolution', async function () {
@@ -139,6 +144,11 @@ function runTests (objectStorage: boolean) {
     }
   })
 
+  it('Should not have run transcoding after an import job', async function () {
+    const { data } = await servers[0].jobs.list({ jobType: 'video-transcoding' })
+    expect(data).to.have.lengthOf(0)
+  })
+
   after(async function () {
     await cleanupTests(servers)
   })