From 1740952b8c0b84f3b1b6edc99890b757000fe3ef Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Nov 2021 08:59:35 +0100 Subject: Add more logs for video import tests --- server/tests/api/videos/video-imports.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server') 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 @@ 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, @@ -416,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 () { -- cgit v1.2.3