From a687879e94fa5d3ecdd76bec3d94d0e1698ee913 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2023 13:41:48 +0200 Subject: Reload the video after waiting for the files lock --- server/tests/peertube-runner/live-transcoding.ts | 6 ++++-- server/tests/peertube-runner/studio-transcoding.ts | 6 ++++-- server/tests/peertube-runner/vod-transcoding.ts | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'server/tests') diff --git a/server/tests/peertube-runner/live-transcoding.ts b/server/tests/peertube-runner/live-transcoding.ts index 31716d545..f0acf25c8 100644 --- a/server/tests/peertube-runner/live-transcoding.ts +++ b/server/tests/peertube-runner/live-transcoding.ts @@ -183,8 +183,10 @@ describe('Test Live transcoding in peertube-runner program', function () { }) after(async function () { - await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) - peertubeRunner.kill() + if (peertubeRunner) { + await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) + peertubeRunner.kill() + } await cleanupTests(servers) }) diff --git a/server/tests/peertube-runner/studio-transcoding.ts b/server/tests/peertube-runner/studio-transcoding.ts index 204836c4d..e20cc9041 100644 --- a/server/tests/peertube-runner/studio-transcoding.ts +++ b/server/tests/peertube-runner/studio-transcoding.ts @@ -108,8 +108,10 @@ describe('Test studio transcoding in peertube-runner program', function () { }) after(async function () { - await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) - peertubeRunner.kill() + if (peertubeRunner) { + await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) + peertubeRunner.kill() + } await cleanupTests(servers) }) diff --git a/server/tests/peertube-runner/vod-transcoding.ts b/server/tests/peertube-runner/vod-transcoding.ts index 3a9abba93..3c0918102 100644 --- a/server/tests/peertube-runner/vod-transcoding.ts +++ b/server/tests/peertube-runner/vod-transcoding.ts @@ -334,8 +334,10 @@ describe('Test VOD transcoding in peertube-runner program', function () { }) after(async function () { - await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) - peertubeRunner.kill() + if (peertubeRunner) { + await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) + peertubeRunner.kill() + } await cleanupTests(servers) }) -- cgit v1.2.3