diff options
Diffstat (limited to 'server/tests/api/videos/services.ts')
-rw-r--r-- | server/tests/api/videos/services.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/tests/api/videos/services.ts b/server/tests/api/videos/services.ts index e79ce59a6..1397347d1 100644 --- a/server/tests/api/videos/services.ts +++ b/server/tests/api/videos/services.ts | |||
@@ -11,7 +11,7 @@ import { | |||
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | uploadVideo | 12 | uploadVideo |
13 | } from '../../../../shared/extra-utils/index' | 13 | } from '../../../../shared/extra-utils/index' |
14 | import { runServer } from '../../../../shared/extra-utils/server/servers' | 14 | import { flushAndRunServer } from '../../../../shared/extra-utils/server/servers' |
15 | 15 | ||
16 | const expect = chai.expect | 16 | const expect = chai.expect |
17 | 17 | ||
@@ -21,9 +21,7 @@ describe('Test services', function () { | |||
21 | before(async function () { | 21 | before(async function () { |
22 | this.timeout(30000) | 22 | this.timeout(30000) |
23 | 23 | ||
24 | await flushTests() | 24 | server = await flushAndRunServer(1) |
25 | |||
26 | server = await runServer(1) | ||
27 | 25 | ||
28 | await setAccessTokensToServers([ server ]) | 26 | await setAccessTokensToServers([ server ]) |
29 | 27 | ||
@@ -76,7 +74,7 @@ describe('Test services', function () { | |||
76 | expect(res.body).to.not.have.property('thumbnail_height') | 74 | expect(res.body).to.not.have.property('thumbnail_height') |
77 | }) | 75 | }) |
78 | 76 | ||
79 | after(async function () { | 77 | after(function () { |
80 | killallServers([ server ]) | 78 | killallServers([ server ]) |
81 | }) | 79 | }) |
82 | }) | 80 | }) |