aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/prune-storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/prune-storage.ts')
-rw-r--r--server/tests/cli/prune-storage.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/tests/cli/prune-storage.ts b/server/tests/cli/prune-storage.ts
index a0af09de8..81f91105c 100644
--- a/server/tests/cli/prune-storage.ts
+++ b/server/tests/cli/prune-storage.ts
@@ -9,12 +9,11 @@ import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-code
9import { 9import {
10 buildServerDirectory, 10 buildServerDirectory,
11 cleanupTests, 11 cleanupTests,
12 CLICommand,
12 createVideoPlaylist, 13 createVideoPlaylist,
13 doubleFollow, 14 doubleFollow,
14 execCLI,
15 flushAndRunMultipleServers, 15 flushAndRunMultipleServers,
16 getAccount, 16 getAccount,
17 getEnvCli,
18 killallServers, 17 killallServers,
19 makeGetRequest, 18 makeGetRequest,
20 ServerInfo, 19 ServerInfo,
@@ -193,8 +192,8 @@ describe('Test prune storage scripts', function () {
193 it('Should run prune storage', async function () { 192 it('Should run prune storage', async function () {
194 this.timeout(30000) 193 this.timeout(30000)
195 194
196 const env = getEnvCli(servers[0]) 195 const env = servers[0].cliCommand.getEnv()
197 await execCLI(`echo y | ${env} npm run prune-storage`) 196 await CLICommand.exec(`echo y | ${env} npm run prune-storage`)
198 }) 197 })
199 198
200 it('Should have removed files', async function () { 199 it('Should have removed files', async function () {