]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-imports.ts
Increase timeout
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-imports.ts
index bb1627a27786ae5d86561c0b3e7a362e52c2c089..b6168b54e2df34f0389085d237f452ede220c48e 100644 (file)
@@ -2,7 +2,7 @@
 
 import 'mocha'
 import { expect } from 'chai'
-import { pathExists, remove } from 'fs-extra'
+import { pathExists, readdir, remove } from 'fs-extra'
 import { join } from 'path'
 import {
   areHttpImportTestsDisabled,
@@ -300,6 +300,7 @@ describe('Test video imports', function () {
           transcoding: {
             enabled: true,
             resolutions: {
+              '144p': true,
               '240p': true,
               '360p': false,
               '480p': false,
@@ -415,7 +416,11 @@ describe('Test video imports', function () {
 
       await quickPeerTubeImport()
 
-      expect(await pathExists(join(server.servers.buildDirectory('bin'), releaseName))).to.be.true
+      const base = server.servers.buildDirectory('bin')
+      const content = await readdir(base)
+      const binaryPath = join(base, releaseName)
+
+      expect(await pathExists(binaryPath), `${binaryPath} does not exist in ${base} (${content.join(', ')})`).to.be.true
     }
 
     before(async function () {
@@ -445,5 +450,9 @@ describe('Test video imports', function () {
 
       await testBinaryUpdate('https://api.github.com/repos/yt-dlp/yt-dlp/releases', 'yt-dlp')
     })
+
+    after(async function () {
+      await cleanupTests([ server ])
+    })
   })
 })