Add test regarding tmp directory

This commit is contained in:
Chocobozzz
2018-12-11 09:16:41 +01:00
parent 9f8ca79284
commit 8923187455
3 changed files with 28 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import { VideoPrivacy } from '../../../../shared/models/videos'
import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
import {
addVideoChannel,
checkTmpIsEmpty,
checkVideoFilesWereRemoved,
completeVideoCheck,
createUser,
@@ -1008,6 +1009,14 @@ describe('Test multiple servers', function () {
})
})
describe('TMP directory', function () {
it('Should have an empty tmp directory', async function () {
for (const server of servers) {
await checkTmpIsEmpty(server)
}
})
})
after(async function () {
killallServers(servers)