aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/logs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/logs.ts')
-rw-r--r--server/tests/api/check-params/logs.ts13
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/check-params/logs.ts b/server/tests/api/check-params/logs.ts
index 0948f7c5e..46cb2392d 100644
--- a/server/tests/api/check-params/logs.ts
+++ b/server/tests/api/check-params/logs.ts
@@ -6,7 +6,7 @@ import {
6 createUser, 6 createUser,
7 flushTests, 7 flushTests,
8 killallServers, 8 killallServers,
9 runServer, 9 flushAndRunServer,
10 ServerInfo, 10 ServerInfo,
11 setAccessTokensToServers, 11 setAccessTokensToServers,
12 userLogin 12 userLogin
@@ -23,9 +23,7 @@ describe('Test logs API validators', function () {
23 before(async function () { 23 before(async function () {
24 this.timeout(120000) 24 this.timeout(120000)
25 25
26 await flushTests() 26 server = await flushAndRunServer(1)
27
28 server = await runServer(1)
29 27
30 await setAccessTokensToServers([ server ]) 28 await setAccessTokensToServers([ server ])
31 29
@@ -106,12 +104,7 @@ describe('Test logs API validators', function () {
106 }) 104 })
107 }) 105 })
108 106
109 after(async function () { 107 after(function () {
110 killallServers([ server ]) 108 killallServers([ server ])
111
112 // Keep the logs if the test failed
113 if (this['ok']) {
114 await flushTests()
115 }
116 }) 109 })
117}) 110})