aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/user-subscriptions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/user-subscriptions.ts')
-rw-r--r--server/tests/api/check-params/user-subscriptions.ts13
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/check-params/user-subscriptions.ts b/server/tests/api/check-params/user-subscriptions.ts
index d33b3bca6..1fe67fa7c 100644
--- a/server/tests/api/check-params/user-subscriptions.ts
+++ b/server/tests/api/check-params/user-subscriptions.ts
@@ -9,7 +9,7 @@ import {
9 makeDeleteRequest, 9 makeDeleteRequest,
10 makeGetRequest, 10 makeGetRequest,
11 makePostBodyRequest, 11 makePostBodyRequest,
12 runServer, 12 flushAndRunServer,
13 ServerInfo, 13 ServerInfo,
14 setAccessTokensToServers, 14 setAccessTokensToServers,
15 userLogin 15 userLogin
@@ -32,9 +32,7 @@ describe('Test user subscriptions API validators', function () {
32 before(async function () { 32 before(async function () {
33 this.timeout(30000) 33 this.timeout(30000)
34 34
35 await flushTests() 35 server = await flushAndRunServer(1)
36
37 server = await runServer(1)
38 36
39 await setAccessTokensToServers([ server ]) 37 await setAccessTokensToServers([ server ])
40 38
@@ -303,12 +301,7 @@ describe('Test user subscriptions API validators', function () {
303 }) 301 })
304 }) 302 })
305 303
306 after(async function () { 304 after(function () {
307 killallServers([ server ]) 305 killallServers([ server ])
308
309 // Keep the logs if the test failed
310 if (this['ok']) {
311 await flushTests()
312 }
313 }) 306 })
314}) 307})