Add more logs for video import tests

pull/4548/head
Chocobozzz 2021-11-16 08:59:35 +01:00
parent 5c08e1c29d
commit 1740952b8c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 2 deletions

View 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,
@ -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 () {