From f4800714f906eabd1762d42179e538f5c4a11d68 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Mar 2019 10:53:53 +0100 Subject: Cleanup tmp directory at startup --- server/tests/api/users/users-multiple-servers.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/tests/api') 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' import 'mocha' import { Account } from '../../../../shared/models/actors' import { + checkTmpIsEmpty, checkVideoFilesWereRemoved, createUser, doubleFollow, @@ -216,6 +217,12 @@ describe('Test users with multiple servers', function () { } }) + it('Should have an empty tmp directory', async function () { + for (const server of servers) { + await checkTmpIsEmpty(server) + } + }) + after(async function () { killallServers(servers) }) -- cgit v1.2.3