From 7137377d097a74087ed062c8071c1aa5c717c7f7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Nov 2021 17:36:38 +0100 Subject: Auto update publishedAt in live restream --- server/tests/api/live/live-permanent.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/tests/api/live') diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts index f07d4cfec..c5f942901 100644 --- a/server/tests/api/live/live-permanent.ts +++ b/server/tests/api/live/live-permanent.ts @@ -101,6 +101,7 @@ describe('Permanent live', function () { it('Should stream into this permanent live', async function () { this.timeout(120000) + const beforePublication = new Date() const ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: videoUUID }) for (const server of servers) { @@ -109,6 +110,11 @@ describe('Permanent live', function () { await checkVideoState(videoUUID, VideoState.PUBLISHED) + for (const server of servers) { + const video = await server.videos.get({ id: videoUUID }) + expect(new Date(video.publishedAt)).greaterThan(beforePublication) + } + await stopFfmpeg(ffmpegCommand) await servers[0].live.waitUntilWaiting({ videoId: videoUUID }) -- cgit v1.2.3