diff options
Diffstat (limited to 'server/tests/api/videos/services.ts')
-rw-r--r-- | server/tests/api/videos/services.ts | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/server/tests/api/videos/services.ts b/server/tests/api/videos/services.ts index 1397347d1..e9ad947b2 100644 --- a/server/tests/api/videos/services.ts +++ b/server/tests/api/videos/services.ts | |||
@@ -2,16 +2,8 @@ | |||
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { | 5 | import { getOEmbed, getVideosList, ServerInfo, setAccessTokensToServers, uploadVideo } from '../../../../shared/extra-utils/index' |
6 | flushTests, | 6 | import { cleanupTests, flushAndRunServer } from '../../../../shared/extra-utils/server/servers' |
7 | getOEmbed, | ||
8 | getVideosList, | ||
9 | killallServers, | ||
10 | ServerInfo, | ||
11 | setAccessTokensToServers, | ||
12 | uploadVideo | ||
13 | } from '../../../../shared/extra-utils/index' | ||
14 | import { flushAndRunServer } from '../../../../shared/extra-utils/server/servers' | ||
15 | 7 | ||
16 | const expect = chai.expect | 8 | const expect = chai.expect |
17 | 9 | ||
@@ -74,7 +66,7 @@ describe('Test services', function () { | |||
74 | expect(res.body).to.not.have.property('thumbnail_height') | 66 | expect(res.body).to.not.have.property('thumbnail_height') |
75 | }) | 67 | }) |
76 | 68 | ||
77 | after(function () { | 69 | after(async function () { |
78 | killallServers([ server ]) | 70 | await cleanupTests([ server ]) |
79 | }) | 71 | }) |
80 | }) | 72 | }) |