diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-16 08:59:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-16 08:59:35 +0100 |
commit | 1740952b8c0b84f3b1b6edc99890b757000fe3ef (patch) | |
tree | 890dbbbcf7acab0b3ee8fc5a231cddea85c5481e | |
parent | 5c08e1c29d021cb99feed15e23ffd3e80eeb30a5 (diff) | |
download | PeerTube-1740952b8c0b84f3b1b6edc99890b757000fe3ef.tar.gz PeerTube-1740952b8c0b84f3b1b6edc99890b757000fe3ef.tar.zst PeerTube-1740952b8c0b84f3b1b6edc99890b757000fe3ef.zip |
Add more logs for video import tests
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 8 |
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 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
5 | import { pathExists, remove } from 'fs-extra' | 5 | import { pathExists, readdir, remove } from 'fs-extra' |
6 | import { join } from 'path' | 6 | import { join } from 'path' |
7 | import { | 7 | import { |
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 () { |