diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-19 10:53:53 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-03-19 10:53:53 +0100 |
commit | f4800714f906eabd1762d42179e538f5c4a11d68 (patch) | |
tree | de5d46d49c257daab9d458d2cc88ee27618b87be /server/tests/api | |
parent | dae86118ed5d4026d04acb9d0e36829b9ad8eb4e (diff) | |
download | PeerTube-f4800714f906eabd1762d42179e538f5c4a11d68.tar.gz PeerTube-f4800714f906eabd1762d42179e538f5c4a11d68.tar.zst PeerTube-f4800714f906eabd1762d42179e538f5c4a11d68.zip |
Cleanup tmp directory at startup
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/users/users-multiple-servers.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts index 006d6cdf0..c46c2b7d7 100644 --- a/server/tests/api/users/users-multiple-servers.ts +++ b/server/tests/api/users/users-multiple-servers.ts | |||
@@ -4,6 +4,7 @@ import * as chai from 'chai' | |||
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { Account } from '../../../../shared/models/actors' | 5 | import { Account } from '../../../../shared/models/actors' |
6 | import { | 6 | import { |
7 | checkTmpIsEmpty, | ||
7 | checkVideoFilesWereRemoved, | 8 | checkVideoFilesWereRemoved, |
8 | createUser, | 9 | createUser, |
9 | doubleFollow, | 10 | doubleFollow, |
@@ -216,6 +217,12 @@ describe('Test users with multiple servers', function () { | |||
216 | } | 217 | } |
217 | }) | 218 | }) |
218 | 219 | ||
220 | it('Should have an empty tmp directory', async function () { | ||
221 | for (const server of servers) { | ||
222 | await checkTmpIsEmpty(server) | ||
223 | } | ||
224 | }) | ||
225 | |||
219 | after(async function () { | 226 | after(async function () { |
220 | killallServers(servers) | 227 | killallServers(servers) |
221 | }) | 228 | }) |