aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/prune-storage.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-05 16:37:50 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:16 +0200
commit329619b3453479f76c049816b7403b86e9d45cb5 (patch)
treee522940946402a4284d356f2cde8e0dcbe29b289 /server/tests/cli/prune-storage.ts
parenta6a79eae0d8564099b6957e76d7a18528d9ef124 (diff)
downloadPeerTube-329619b3453479f76c049816b7403b86e9d45cb5.tar.gz
PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.tar.zst
PeerTube-329619b3453479f76c049816b7403b86e9d45cb5.zip
Introduce CLI command
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 () {