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
}
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 () {
}
})
+ 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)
})