diff options
Diffstat (limited to 'server/tests/api/check-params/debug.ts')
-rw-r--r-- | server/tests/api/check-params/debug.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/check-params/debug.ts b/server/tests/api/check-params/debug.ts index 8ba7e0430..dd00ed9e1 100644 --- a/server/tests/api/check-params/debug.ts +++ b/server/tests/api/check-params/debug.ts | |||
@@ -6,7 +6,7 @@ import { | |||
6 | createUser, | 6 | createUser, |
7 | flushTests, | 7 | flushTests, |
8 | killallServers, | 8 | killallServers, |
9 | runServer, | 9 | flushAndRunServer, |
10 | ServerInfo, | 10 | ServerInfo, |
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | userLogin | 12 | userLogin |
@@ -23,9 +23,7 @@ describe('Test debug API validators', function () { | |||
23 | before(async function () { | 23 | before(async function () { |
24 | this.timeout(120000) | 24 | this.timeout(120000) |
25 | 25 | ||
26 | await flushTests() | 26 | server = await flushAndRunServer(1) |
27 | |||
28 | server = await runServer(1) | ||
29 | 27 | ||
30 | await setAccessTokensToServers([ server ]) | 28 | await setAccessTokensToServers([ server ]) |
31 | 29 | ||
@@ -67,12 +65,7 @@ describe('Test debug API validators', function () { | |||
67 | }) | 65 | }) |
68 | }) | 66 | }) |
69 | 67 | ||
70 | after(async function () { | 68 | after(function () { |
71 | killallServers([ server ]) | 69 | killallServers([ server ]) |
72 | |||
73 | // Keep the logs if the test failed | ||
74 | if (this['ok']) { | ||
75 | await flushTests() | ||
76 | } | ||
77 | }) | 70 | }) |
78 | }) | 71 | }) |