diff options
Diffstat (limited to 'server/tests/api/check-params/follows.ts')
-rw-r--r-- | server/tests/api/check-params/follows.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/server/tests/api/check-params/follows.ts b/server/tests/api/check-params/follows.ts index e75631312..02f47c2bb 100644 --- a/server/tests/api/check-params/follows.ts +++ b/server/tests/api/check-params/follows.ts | |||
@@ -3,7 +3,7 @@ | |||
3 | import 'mocha' | 3 | import 'mocha' |
4 | 4 | ||
5 | import { | 5 | import { |
6 | createUser, flushTests, killallServers, makeDeleteRequest, makePostBodyRequest, runServer, ServerInfo, setAccessTokensToServers, | 6 | createUser, flushTests, killallServers, makeDeleteRequest, makePostBodyRequest, flushAndRunServer, ServerInfo, setAccessTokensToServers, |
7 | userLogin | 7 | userLogin |
8 | } from '../../../../shared/extra-utils' | 8 | } from '../../../../shared/extra-utils' |
9 | import { | 9 | import { |
@@ -20,8 +20,7 @@ describe('Test server follows API validators', function () { | |||
20 | before(async function () { | 20 | before(async function () { |
21 | this.timeout(30000) | 21 | this.timeout(30000) |
22 | 22 | ||
23 | await flushTests() | 23 | server = await flushAndRunServer(1) |
24 | server = await runServer(1) | ||
25 | 24 | ||
26 | await setAccessTokensToServers([ server ]) | 25 | await setAccessTokensToServers([ server ]) |
27 | }) | 26 | }) |
@@ -296,12 +295,7 @@ describe('Test server follows API validators', function () { | |||
296 | }) | 295 | }) |
297 | }) | 296 | }) |
298 | 297 | ||
299 | after(async function () { | 298 | after(function () { |
300 | killallServers([ server ]) | 299 | killallServers([ server ]) |
301 | |||
302 | // Keep the logs if the test failed | ||
303 | if (this['ok']) { | ||
304 | await flushTests() | ||
305 | } | ||
306 | }) | 300 | }) |
307 | }) | 301 | }) |