aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/config.ts')
-rw-r--r--server/tests/api/check-params/config.ts12
1 files changed, 3 insertions, 9 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts
index ba07552cf..3d80c629e 100644
--- a/server/tests/api/check-params/config.ts
+++ b/server/tests/api/check-params/config.ts
@@ -5,7 +5,7 @@ import 'mocha'
5import { CustomConfig } from '../../../../shared/models/server/custom-config.model' 5import { CustomConfig } from '../../../../shared/models/server/custom-config.model'
6 6
7import { 7import {
8 createUser, flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePutBodyRequest, runServer, ServerInfo, 8 createUser, flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePutBodyRequest, flushAndRunServer, ServerInfo,
9 setAccessTokensToServers, userLogin, immutableAssign 9 setAccessTokensToServers, userLogin, immutableAssign
10} from '../../../../shared/extra-utils' 10} from '../../../../shared/extra-utils'
11 11
@@ -101,8 +101,7 @@ describe('Test config API validators', function () {
101 before(async function () { 101 before(async function () {
102 this.timeout(30000) 102 this.timeout(30000)
103 103
104 await flushTests() 104 server = await flushAndRunServer(1)
105 server = await runServer(1)
106 105
107 await setAccessTokensToServers([ server ]) 106 await setAccessTokensToServers([ server ])
108 107
@@ -230,12 +229,7 @@ describe('Test config API validators', function () {
230 }) 229 })
231 }) 230 })
232 231
233 after(async function () { 232 after(function () {
234 killallServers([ server ]) 233 killallServers([ server ])
235
236 // Keep the logs if the test failed
237 if (this['ok']) {
238 await flushTests()
239 }
240 }) 234 })
241}) 235})