]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/users/users-multiple-servers.ts
Cleanup tmp directory at startup
[github/Chocobozzz/PeerTube.git] / server / tests / api / users / users-multiple-servers.ts
index 006d6cdf0e17da82d395e476bac0bb935620bd15..c46c2b7d72b5813993ed30cf6d9f7d64c4a92793 100644 (file)
@@ -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)
   })