diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/resumable-upload.ts | 2 | ||||
-rw-r--r-- | server/tests/cli/create-import-video-file-job.ts | 2 |
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) |