aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-16 13:31:59 +0200
committerChocobozzz <me@florianbigard.com>2022-09-16 13:48:06 +0200
commit3c4754a3a16939337bfeb90c375fbb9e0f7d91fb (patch)
tree92991013bc8250135710b5722339aa75d116a90f /server/tests/api/videos
parent6235c0b8dcb941312da644bf62ba202c10b71e74 (diff)
downloadPeerTube-3c4754a3a16939337bfeb90c375fbb9e0f7d91fb.tar.gz
PeerTube-3c4754a3a16939337bfeb90c375fbb9e0f7d91fb.tar.zst
PeerTube-3c4754a3a16939337bfeb90c375fbb9e0f7d91fb.zip
Wait transcoding by default when importing a video
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-channel-syncs.ts4
-rw-r--r--server/tests/api/videos/video-description.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/server/tests/api/videos/video-channel-syncs.ts b/server/tests/api/videos/video-channel-syncs.ts
index 65b143a4f..5c0663311 100644
--- a/server/tests/api/videos/video-channel-syncs.ts
+++ b/server/tests/api/videos/video-channel-syncs.ts
@@ -1,3 +1,5 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2
1import { expect } from 'chai' 3import { expect } from 'chai'
2import { FIXTURE_URLS } from '@server/tests/shared' 4import { FIXTURE_URLS } from '@server/tests/shared'
3import { areHttpImportTestsDisabled } from '@shared/core-utils' 5import { areHttpImportTestsDisabled } from '@shared/core-utils'
@@ -76,6 +78,7 @@ describe('Test channel synchronizations', function () {
76 }) 78 })
77 79
78 expect(video.name).to.equal('small video - youtube') 80 expect(video.name).to.equal('small video - youtube')
81 expect(video.waitTranscoding).to.be.true
79 82
80 const { total } = await servers[0].videos.listByChannel({ handle: 'root_channel', include: VideoInclude.NOT_PUBLISHED_STATE }) 83 const { total } = await servers[0].videos.listByChannel({ handle: 'root_channel', include: VideoInclude.NOT_PUBLISHED_STATE })
81 expect(total).to.equal(1) 84 expect(total).to.equal(1)
@@ -109,6 +112,7 @@ describe('Test channel synchronizations', function () {
109 }) 112 })
110 expect(total).to.equal(2) 113 expect(total).to.equal(2)
111 expect(data[0].name).to.equal('test') 114 expect(data[0].name).to.equal('test')
115 expect(data[0].waitTranscoding).to.be.true
112 } 116 }
113 }) 117 })
114 118
diff --git a/server/tests/api/videos/video-description.ts b/server/tests/api/videos/video-description.ts
index a74b78a5f..a4b3ff6e7 100644
--- a/server/tests/api/videos/video-description.ts
+++ b/server/tests/api/videos/video-description.ts
@@ -30,7 +30,7 @@ describe('Test video description', function () {
30 }) 30 })
31 31
32 it('Should upload video with long description', async function () { 32 it('Should upload video with long description', async function () {
33 this.timeout(10000) 33 this.timeout(30000)
34 34
35 const attributes = { 35 const attributes = {
36 description: longDescription 36 description: longDescription