diff options
Diffstat (limited to 'server/tests/api/videos/video-imports.ts')
-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 () { |