X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fcreate-import-video-file-job.ts;h=8ef0545d07c3b4ceded3a002643eb1a024969638;hb=10a72a7e617273cdbe897766f77f427eb57b689a;hp=1e278bacccb00136287abfdc9086da5574867c3a;hpb=221ee1adc916684d4881d2a9c4c01954dcde986e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts index 1e278bacc..8ef0545d0 100644 --- a/server/tests/cli/create-import-video-file-job.ts +++ b/server/tests/cli/create-import-video-file-job.ts @@ -2,19 +2,19 @@ import 'mocha' import * as chai from 'chai' +import { areObjectStorageTestsDisabled } from '@shared/core-utils' +import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models' import { - areObjectStorageTestsDisabled, cleanupTests, createMultipleServers, doubleFollow, - expectStartWith, makeRawRequest, ObjectStorageCommand, PeerTubeServer, setAccessTokensToServers, waitJobs -} from '@shared/extra-utils' -import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models' +} from '@shared/server-commands' +import { expectStartWith } from '../shared' const expect = chai.expect @@ -69,6 +69,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 +143,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) })