aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-02 13:51:06 +0200
committerChocobozzz <chocobozzz@cpy.re>2023-05-09 08:57:34 +0200
commit3a0c2a77b1a6626699514ddaf8135f4397175443 (patch)
tree60bec7ef8e9cdc008b0a4a56aa403617d036bfab /server/tests
parent9a3db678f56eda37d222cf2d2232ae0ef5d533d2 (diff)
downloadPeerTube-3a0c2a77b1a6626699514ddaf8135f4397175443.tar.gz
PeerTube-3a0c2a77b1a6626699514ddaf8135f4397175443.tar.zst
PeerTube-3a0c2a77b1a6626699514ddaf8135f4397175443.zip
Enable external plugins to test the PR
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/resumable-upload.ts2
-rw-r--r--server/tests/cli/create-import-video-file-job.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/resumable-upload.ts b/server/tests/api/videos/resumable-upload.ts
index a70a7258b..2fbefb392 100644
--- a/server/tests/api/videos/resumable-upload.ts
+++ b/server/tests/api/videos/resumable-upload.ts
@@ -79,7 +79,7 @@ describe('Test resumable upload', function () {
79 async function checkFileSize (uploadIdArg: string, expectedSize: number | null) { 79 async function checkFileSize (uploadIdArg: string, expectedSize: number | null) {
80 const uploadId = uploadIdArg.replace(/^upload_id=/, '') 80 const uploadId = uploadIdArg.replace(/^upload_id=/, '')
81 81
82 const subPath = join('tmp', 'resumable-uploads', uploadId) 82 const subPath = join('tmp', 'resumable-uploads', `${rootId}-${uploadId}.mp4`)
83 const filePath = server.servers.buildDirectory(subPath) 83 const filePath = server.servers.buildDirectory(subPath)
84 const exists = await pathExists(filePath) 84 const exists = await pathExists(filePath)
85 85
diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts
index 43f53035b..3ece4f2ec 100644
--- a/server/tests/cli/create-import-video-file-job.ts
+++ b/server/tests/cli/create-import-video-file-job.ts
@@ -73,7 +73,7 @@ function runTests (objectStorage: boolean) {
73 }) 73 })
74 74
75 it('Should run a import job on video 1 with a lower resolution', async function () { 75 it('Should run a import job on video 1 with a lower resolution', async function () {
76 const command = `npm run create-import-video-file-job -- -v ${video1ShortId} -i server/tests/fixtures/video_short-480.webm` 76 const command = `npm run create-import-video-file-job -- -v ${video1ShortId} -i server/tests/fixtures/video_short_480.webm`
77 await servers[0].cli.execWithEnv(command) 77 await servers[0].cli.execWithEnv(command)
78 78
79 await waitJobs(servers) 79 await waitJobs(servers)