aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/peertube-runner/live-transcoding.ts6
-rw-r--r--server/tests/peertube-runner/studio-transcoding.ts6
-rw-r--r--server/tests/peertube-runner/vod-transcoding.ts6
3 files changed, 12 insertions, 6 deletions
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 () {
183 }) 183 })
184 184
185 after(async function () { 185 after(async function () {
186 await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) 186 if (peertubeRunner) {
187 peertubeRunner.kill() 187 await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] })
188 peertubeRunner.kill()
189 }
188 190
189 await cleanupTests(servers) 191 await cleanupTests(servers)
190 }) 192 })
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 () {
108 }) 108 })
109 109
110 after(async function () { 110 after(async function () {
111 await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) 111 if (peertubeRunner) {
112 peertubeRunner.kill() 112 await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] })
113 peertubeRunner.kill()
114 }
113 115
114 await cleanupTests(servers) 116 await cleanupTests(servers)
115 }) 117 })
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 () {
334 }) 334 })
335 335
336 after(async function () { 336 after(async function () {
337 await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] }) 337 if (peertubeRunner) {
338 peertubeRunner.kill() 338 await peertubeRunner.unregisterPeerTubeInstance({ server: servers[0] })
339 peertubeRunner.kill()
340 }
339 341
340 await cleanupTests(servers) 342 await cleanupTests(servers)
341 }) 343 })