aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/video-channels.ts')
-rw-r--r--server/tests/api/check-params/video-channels.ts13
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts
index b6aa745ab..06da4f541 100644
--- a/server/tests/api/check-params/video-channels.ts
+++ b/server/tests/api/check-params/video-channels.ts
@@ -16,7 +16,7 @@ import {
16 makePostBodyRequest, 16 makePostBodyRequest,
17 makePutBodyRequest, 17 makePutBodyRequest,
18 makeUploadRequest, 18 makeUploadRequest,
19 runServer, 19 flushAndRunServer,
20 ServerInfo, 20 ServerInfo,
21 setAccessTokensToServers, 21 setAccessTokensToServers,
22 userLogin 22 userLogin
@@ -41,9 +41,7 @@ describe('Test video channels API validator', function () {
41 before(async function () { 41 before(async function () {
42 this.timeout(30000) 42 this.timeout(30000)
43 43
44 await flushTests() 44 server = await flushAndRunServer(1)
45
46 server = await runServer(1)
47 45
48 await setAccessTokensToServers([ server ]) 46 await setAccessTokensToServers([ server ])
49 47
@@ -312,12 +310,7 @@ describe('Test video channels API validator', function () {
312 }) 310 })
313 }) 311 })
314 312
315 after(async function () { 313 after(function () {
316 killallServers([ server ]) 314 killallServers([ server ])
317
318 // Keep the logs if the test failed
319 if (this['ok']) {
320 await flushTests()
321 }
322 }) 315 })
323}) 316})