mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-24 09:40:28 -06:00
Fix tmp tests
This commit is contained in:
parent
aaedadd538
commit
d1a2ce5ef3
@ -272,8 +272,12 @@ async function reRunServer (server: ServerInfo, configOverride?: any) {
|
||||
return server
|
||||
}
|
||||
|
||||
function checkTmpIsEmpty (server: ServerInfo) {
|
||||
return checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css' ])
|
||||
async function checkTmpIsEmpty (server: ServerInfo) {
|
||||
await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls' ])
|
||||
|
||||
if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) {
|
||||
await checkDirectoryIsEmpty(server, 'tmp/hls')
|
||||
}
|
||||
}
|
||||
|
||||
async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) {
|
||||
|
Loading…
Reference in New Issue
Block a user