From 4842e518be6fa3fc6f92e1e6475549ce9c173b74 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Nov 2021 16:29:42 +0100 Subject: Fetch publishedAt after wait jobs To make sure it's published --- server/tests/api/videos/video-create-transcoding.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests') 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) { const { shortUUID } = await servers[0].videos.quickUpload({ name: 'video' }) videoUUID = shortUUID + await waitJobs(servers) + const video = await servers[0].videos.get({ id: videoUUID }) publishedAt = video.publishedAt as string await servers[0].config.enableTranscoding() - - await waitJobs(servers) }) it('Should generate HLS', async function () { -- cgit v1.2.3