aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/search/search-videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/search/search-videos.ts')
-rw-r--r--server/tests/api/search/search-videos.ts13
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/search/search-videos.ts b/server/tests/api/search/search-videos.ts
index 65f3c9186..d1520a9aa 100644
--- a/server/tests/api/search/search-videos.ts
+++ b/server/tests/api/search/search-videos.ts
@@ -6,7 +6,7 @@ import {
6 advancedVideosSearch, 6 advancedVideosSearch,
7 flushTests, 7 flushTests,
8 killallServers, 8 killallServers,
9 runServer, 9 flushAndRunServer,
10 searchVideo, 10 searchVideo,
11 ServerInfo, 11 ServerInfo,
12 setAccessTokensToServers, 12 setAccessTokensToServers,
@@ -24,9 +24,7 @@ describe('Test a videos search', function () {
24 before(async function () { 24 before(async function () {
25 this.timeout(30000) 25 this.timeout(30000)
26 26
27 await flushTests() 27 server = await flushAndRunServer(1)
28
29 server = await runServer(1)
30 28
31 await setAccessTokensToServers([ server ]) 29 await setAccessTokensToServers([ server ])
32 30
@@ -407,12 +405,7 @@ describe('Test a videos search', function () {
407 } 405 }
408 }) 406 })
409 407
410 after(async function () { 408 after(function () {
411 killallServers([ server ]) 409 killallServers([ server ])
412
413 // Keep the logs if the test failed
414 if (this['ok']) {
415 await flushTests()
416 }
417 }) 410 })
418}) 411})