diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-24 10:53:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:26:23 +0200 |
commit | 210feb6cc484a6c5c63c98f770de34e223f944cb (patch) | |
tree | d1d841892a7ac87ac0d434194597606a375aaed1 /server/tests/api/check-params/logs.ts | |
parent | 9cc8d43e37a61709e7275c2a799bdf976dd940ca (diff) | |
download | PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.gz PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.zst PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.zip |
Cleanup tests
Diffstat (limited to 'server/tests/api/check-params/logs.ts')
-rw-r--r-- | server/tests/api/check-params/logs.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/check-params/logs.ts b/server/tests/api/check-params/logs.ts index 0948f7c5e..46cb2392d 100644 --- a/server/tests/api/check-params/logs.ts +++ b/server/tests/api/check-params/logs.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 logs 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 | ||
@@ -106,12 +104,7 @@ describe('Test logs API validators', function () { | |||
106 | }) | 104 | }) |
107 | }) | 105 | }) |
108 | 106 | ||
109 | after(async function () { | 107 | after(function () { |
110 | killallServers([ server ]) | 108 | killallServers([ server ]) |
111 | |||
112 | // Keep the logs if the test failed | ||
113 | if (this['ok']) { | ||
114 | await flushTests() | ||
115 | } | ||
116 | }) | 109 | }) |
117 | }) | 110 | }) |