aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-18 16:29:42 +0100
committerChocobozzz <me@florianbigard.com>2021-11-18 16:30:25 +0100
commit4842e518be6fa3fc6f92e1e6475549ce9c173b74 (patch)
treeabb2b3da077996fdc414481bc11a7daa94f3ee31 /server/tests/api/videos
parent98846837ebb6bfbed3866eee5258946b35769651 (diff)
downloadPeerTube-4842e518be6fa3fc6f92e1e6475549ce9c173b74.tar.gz
PeerTube-4842e518be6fa3fc6f92e1e6475549ce9c173b74.tar.zst
PeerTube-4842e518be6fa3fc6f92e1e6475549ce9c173b74.zip
Fetch publishedAt after wait jobs
To make sure it's published
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-create-transcoding.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/video-create-transcoding.ts b/server/tests/api/videos/video-create-transcoding.ts
index bae06ac6c..128bc885a 100644
--- a/server/tests/api/videos/video-create-transcoding.ts
+++ b/server/tests/api/videos/video-create-transcoding.ts
@@ -60,12 +60,12 @@ function runTests (objectStorage: boolean) {
60 const { shortUUID } = await servers[0].videos.quickUpload({ name: 'video' }) 60 const { shortUUID } = await servers[0].videos.quickUpload({ name: 'video' })
61 videoUUID = shortUUID 61 videoUUID = shortUUID
62 62
63 await waitJobs(servers)
64
63 const video = await servers[0].videos.get({ id: videoUUID }) 65 const video = await servers[0].videos.get({ id: videoUUID })
64 publishedAt = video.publishedAt as string 66 publishedAt = video.publishedAt as string
65 67
66 await servers[0].config.enableTranscoding() 68 await servers[0].config.enableTranscoding()
67
68 await waitJobs(servers)
69 }) 69 })
70 70
71 it('Should generate HLS', async function () { 71 it('Should generate HLS', async function () {