diff options
Diffstat (limited to 'server/tests/api/videos/single-server.ts')
-rw-r--r-- | server/tests/api/videos/single-server.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index ea3e7c421..db2a3779f 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts | |||
@@ -20,7 +20,7 @@ import { | |||
20 | killallServers, | 20 | killallServers, |
21 | rateVideo, | 21 | rateVideo, |
22 | removeVideo, | 22 | removeVideo, |
23 | runServer, | 23 | flushAndRunServer, |
24 | ServerInfo, | 24 | ServerInfo, |
25 | setAccessTokensToServers, | 25 | setAccessTokensToServers, |
26 | testImage, | 26 | testImage, |
@@ -107,9 +107,7 @@ describe('Test a single server', function () { | |||
107 | before(async function () { | 107 | before(async function () { |
108 | this.timeout(30000) | 108 | this.timeout(30000) |
109 | 109 | ||
110 | await flushTests() | 110 | server = await flushAndRunServer(1) |
111 | |||
112 | server = await runServer(1) | ||
113 | 111 | ||
114 | await setAccessTokensToServers([ server ]) | 112 | await setAccessTokensToServers([ server ]) |
115 | }) | 113 | }) |
@@ -426,12 +424,7 @@ describe('Test a single server', function () { | |||
426 | expect(video.dislikes).to.equal(1) | 424 | expect(video.dislikes).to.equal(1) |
427 | }) | 425 | }) |
428 | 426 | ||
429 | after(async function () { | 427 | after(function () { |
430 | killallServers([ server ]) | 428 | killallServers([ server ]) |
431 | |||
432 | // Keep the logs if the test failed | ||
433 | if (this['ok']) { | ||
434 | await flushTests() | ||
435 | } | ||
436 | }) | 429 | }) |
437 | }) | 430 | }) |