diff options
Diffstat (limited to 'shared/extra-utils/server/directories.ts')
-rw-r--r-- | shared/extra-utils/server/directories.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/extra-utils/server/directories.ts b/shared/extra-utils/server/directories.ts index 3cd38a561..b6465cbf4 100644 --- a/shared/extra-utils/server/directories.ts +++ b/shared/extra-utils/server/directories.ts | |||
@@ -4,9 +4,9 @@ import { expect } from 'chai' | |||
4 | import { pathExists, readdir } from 'fs-extra' | 4 | import { pathExists, readdir } from 'fs-extra' |
5 | import { join } from 'path' | 5 | import { join } from 'path' |
6 | import { root } from '@server/helpers/core-utils' | 6 | import { root } from '@server/helpers/core-utils' |
7 | import { ServerInfo } from './servers' | 7 | import { PeerTubeServer } from './server' |
8 | 8 | ||
9 | async function checkTmpIsEmpty (server: ServerInfo) { | 9 | async function checkTmpIsEmpty (server: PeerTubeServer) { |
10 | await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls', 'resumable-uploads' ]) | 10 | await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls', 'resumable-uploads' ]) |
11 | 11 | ||
12 | if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) { | 12 | if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) { |
@@ -14,7 +14,7 @@ async function checkTmpIsEmpty (server: ServerInfo) { | |||
14 | } | 14 | } |
15 | } | 15 | } |
16 | 16 | ||
17 | async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) { | 17 | async function checkDirectoryIsEmpty (server: PeerTubeServer, directory: string, exceptions: string[] = []) { |
18 | const testDirectory = 'test' + server.internalServerNumber | 18 | const testDirectory = 'test' + server.internalServerNumber |
19 | 19 | ||
20 | const directoryPath = join(root(), testDirectory, directory) | 20 | const directoryPath = join(root(), testDirectory, directory) |