diff options
Diffstat (limited to 'server/tests/api/videos/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index abf4d0c44..50224ee47 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts | |||
@@ -8,7 +8,7 @@ import { | |||
8 | dateIsValid, | 8 | dateIsValid, |
9 | flushTests, | 9 | flushTests, |
10 | killallServers, | 10 | killallServers, |
11 | runServer, | 11 | flushAndRunServer, |
12 | ServerInfo, | 12 | ServerInfo, |
13 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
14 | updateMyAvatar, | 14 | updateMyAvatar, |
@@ -34,9 +34,7 @@ describe('Test video comments', function () { | |||
34 | before(async function () { | 34 | before(async function () { |
35 | this.timeout(30000) | 35 | this.timeout(30000) |
36 | 36 | ||
37 | await flushTests() | 37 | server = await flushAndRunServer(1) |
38 | |||
39 | server = await runServer(1) | ||
40 | 38 | ||
41 | await setAccessTokensToServers([ server ]) | 39 | await setAccessTokensToServers([ server ]) |
42 | 40 | ||
@@ -201,7 +199,7 @@ describe('Test video comments', function () { | |||
201 | expect(res.body.data[1].totalReplies).to.equal(0) | 199 | expect(res.body.data[1].totalReplies).to.equal(0) |
202 | }) | 200 | }) |
203 | 201 | ||
204 | after(async function () { | 202 | after(function () { |
205 | killallServers([ server ]) | 203 | killallServers([ server ]) |
206 | }) | 204 | }) |
207 | }) | 205 | }) |