From 842a15732b5ddcd9c9c90e790a448235800ef870 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Nov 2021 15:22:07 +0100 Subject: Ensure we don't run transcoding after import file --- server/tests/cli/create-import-video-file-job.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/tests/cli') diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts index 1e278bacc..17ed67b05 100644 --- a/server/tests/cli/create-import-video-file-job.ts +++ b/server/tests/cli/create-import-video-file-job.ts @@ -7,6 +7,7 @@ import { cleanupTests, createMultipleServers, doubleFollow, + expectNoFailedTranscodingJob, expectStartWith, makeRawRequest, ObjectStorageCommand, @@ -69,6 +70,10 @@ function runTests (objectStorage: boolean) { } await waitJobs(servers) + + for (const server of servers) { + await server.config.enableTranscoding() + } }) it('Should run a import job on video 1 with a lower resolution', async function () { @@ -139,6 +144,11 @@ function runTests (objectStorage: boolean) { } }) + it('Should not have run transcoding after an import job', async function () { + const { data } = await servers[0].jobs.list({ jobType: 'video-transcoding' }) + expect(data).to.have.lengthOf(0) + }) + after(async function () { await cleanupTests(servers) }) -- cgit v1.2.3