Add more logs for video import tests
This commit is contained in:
parent
5c08e1c29d
commit
1740952b8c
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import 'mocha'
|
import 'mocha'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
import { pathExists, remove } from 'fs-extra'
|
import { pathExists, readdir, remove } from 'fs-extra'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import {
|
import {
|
||||||
areHttpImportTestsDisabled,
|
areHttpImportTestsDisabled,
|
||||||
|
@ -416,7 +416,11 @@ describe('Test video imports', function () {
|
||||||
|
|
||||||
await quickPeerTubeImport()
|
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 () {
|
before(async function () {
|
||||||
|
|
Loading…
Reference in New Issue