aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-channel-syncs.ts
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/video-channel-syncs.ts
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/video-channel-syncs.ts')
-rw-r--r--server/tests/api/videos/video-channel-syncs.ts4
1 files changed, 4 insertions, 0 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