aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/client.ts')
-rw-r--r--server/tests/client.ts13
1 files changed, 5 insertions, 8 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts
index 06b4a9c5a..778dcd08e 100644
--- a/server/tests/client.ts
+++ b/server/tests/client.ts
@@ -4,18 +4,17 @@ import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import * as request from 'supertest' 5import * as request from 'supertest'
6import { 6import {
7 flushTests, 7 cleanupTests,
8 flushAndRunServer,
8 getCustomConfig, 9 getCustomConfig,
9 getVideosList, 10 getVideosList,
10 killallServers,
11 makeHTMLRequest, 11 makeHTMLRequest,
12 runServer,
13 ServerInfo, 12 ServerInfo,
14 serverLogin, 13 serverLogin,
15 updateCustomConfig, 14 updateCustomConfig,
16 updateCustomSubConfig, 15 updateCustomSubConfig,
17 uploadVideo 16 uploadVideo
18} from '../../shared/utils' 17} from '../../shared/extra-utils'
19 18
20const expect = chai.expect 19const expect = chai.expect
21 20
@@ -31,9 +30,7 @@ describe('Test a client controllers', function () {
31 before(async function () { 30 before(async function () {
32 this.timeout(120000) 31 this.timeout(120000)
33 32
34 await flushTests() 33 server = await flushAndRunServer(1)
35
36 server = await runServer(1)
37 server.accessToken = await serverLogin(server) 34 server.accessToken = await serverLogin(server)
38 35
39 const videoAttributes = { 36 const videoAttributes = {
@@ -148,6 +145,6 @@ describe('Test a client controllers', function () {
148 }) 145 })
149 146
150 after(async function () { 147 after(async function () {
151 killallServers([ server ]) 148 await cleanupTests([ server ])
152 }) 149 })
153}) 150})