aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-16 08:59:35 +0100
committerChocobozzz <me@florianbigard.com>2021-11-16 08:59:35 +0100
commit1740952b8c0b84f3b1b6edc99890b757000fe3ef (patch)
tree890dbbbcf7acab0b3ee8fc5a231cddea85c5481e /server/tests
parent5c08e1c29d021cb99feed15e23ffd3e80eeb30a5 (diff)
downloadPeerTube-1740952b8c0b84f3b1b6edc99890b757000fe3ef.tar.gz
PeerTube-1740952b8c0b84f3b1b6edc99890b757000fe3ef.tar.zst
PeerTube-1740952b8c0b84f3b1b6edc99890b757000fe3ef.zip
Add more logs for video import tests
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/video-imports.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index 37c459d76..b6168b54e 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -2,7 +2,7 @@
2 2
3import 'mocha' 3import 'mocha'
4import { expect } from 'chai' 4import { expect } from 'chai'
5import { pathExists, remove } from 'fs-extra' 5import { pathExists, readdir, remove } from 'fs-extra'
6import { join } from 'path' 6import { join } from 'path'
7import { 7import {
8 areHttpImportTestsDisabled, 8 areHttpImportTestsDisabled,
@@ -416,7 +416,11 @@ describe('Test video imports', function () {
416 416
417 await quickPeerTubeImport() 417 await quickPeerTubeImport()
418 418
419 expect(await pathExists(join(server.servers.buildDirectory('bin'), releaseName))).to.be.true 419 const base = server.servers.buildDirectory('bin')
420 const content = await readdir(base)
421 const binaryPath = join(base, releaseName)
422
423 expect(await pathExists(binaryPath), `${binaryPath} does not exist in ${base} (${content.join(', ')})`).to.be.true
420 } 424 }
421 425
422 before(async function () { 426 before(async function () {